mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +00:00
Fix build lint warnings (#1087)
This commit is contained in:
parent
533557c135
commit
e800286bc1
4 changed files with 16 additions and 4 deletions
|
@ -34,8 +34,17 @@ public class EnhancedEditText extends AppCompatEditText {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouchEvent(MotionEvent event) {
|
public boolean onTouchEvent(MotionEvent event) {
|
||||||
|
if (!isEnabled())
|
||||||
|
return false;
|
||||||
|
if (event.getAction() == MotionEvent.ACTION_UP)
|
||||||
|
super.performClick();
|
||||||
|
return super.onTouchEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean performClick() {
|
||||||
return (isEnabled())
|
return (isEnabled())
|
||||||
? super.onTouchEvent(event)
|
? super.performClick()
|
||||||
: false;
|
: false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,5 +32,6 @@
|
||||||
android:layout_gravity="start"
|
android:layout_gravity="start"
|
||||||
android:background="?android:windowBackground"
|
android:background="?android:windowBackground"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:elevation="16dp" />
|
android:elevation="16dp"
|
||||||
|
android:focusable="true" />
|
||||||
</android.support.v4.widget.DrawerLayout>
|
</android.support.v4.widget.DrawerLayout>
|
|
@ -49,6 +49,7 @@
|
||||||
android:layout_width="200dp"
|
android:layout_width="200dp"
|
||||||
android:layout_height="200dp"
|
android:layout_height="200dp"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
|
tools:ignore="ContentDescription"
|
||||||
tools:src="@drawable/ic_launcher"/>
|
tools:src="@drawable/ic_launcher"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignTop="@+id/inner"
|
android:layout_alignTop="@+id/inner"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
|
android:contentDescription="@string/open_file_manager"
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:paddingEnd="20dp"
|
android:paddingEnd="20dp"
|
||||||
android:paddingLeft="25dp"
|
android:paddingLeft="25dp"
|
||||||
|
|
Loading…
Reference in a new issue