mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
Refactor: Supress 4 unnecessary lint errors
This commit is contained in:
parent
709e043f68
commit
a75e47495c
@ -1,6 +1,7 @@
|
||||
package org.kiwix.kiwixmobile.zim_manager.local_file_transfer;
|
||||
|
||||
import android.Manifest;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
@ -66,6 +67,7 @@ import static org.kiwix.kiwixmobile.zim_manager.local_file_transfer.FileItem.Fil
|
||||
* 2) After handshake, starting the files transfer using {@link SenderDeviceAsyncTask} on the sender
|
||||
* device and {@link ReceiverDeviceAsyncTask} files receiving device
|
||||
*/
|
||||
@SuppressLint("GoogleAppIndexingApiWarning")
|
||||
public class LocalFileTransferActivity extends AppCompatActivity implements
|
||||
WifiDirectManager.Callbacks {
|
||||
|
||||
|
@ -50,6 +50,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="Device Name"
|
||||
tools:ignore="HardcodedText"
|
||||
android:textIsSelectable="true"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintTop_toBottomOf="@id/text_view_your_device"
|
||||
|
@ -4,6 +4,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:padding="10dp">
|
||||
|
||||
<TextView
|
||||
@ -12,6 +13,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="File name"
|
||||
tools:ignore="HardcodedText"
|
||||
android:textIsSelectable="true"
|
||||
android:textSize="14sp"
|
||||
android:background="@android:color/transparent"
|
||||
|
@ -1,6 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal" android:layout_width="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp">
|
||||
|
||||
@ -11,6 +13,7 @@
|
||||
android:layout_weight="3"
|
||||
android:gravity="center_horizontal"
|
||||
android:hint="Device Name"
|
||||
tools:ignore="HardcodedText"
|
||||
android:textIsSelectable="false"
|
||||
android:textStyle="bold"
|
||||
android:background="@android:color/transparent"
|
||||
|
Loading…
x
Reference in New Issue
Block a user