1
0
Fork 0
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:
Catfriend1 2018-05-11 13:23:02 +02:00 committed by Audrius Butkevicius
parent 533557c135
commit e800286bc1
4 changed files with 16 additions and 4 deletions

View file

@ -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;
} }

View file

@ -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>

View file

@ -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>

View file

@ -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"