1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-26 21:01:32 +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
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())
? super.onTouchEvent(event)
? super.performClick()
: false;
}

View file

@ -32,5 +32,6 @@
android:layout_gravity="start"
android:background="?android:windowBackground"
android:clickable="true"
android:elevation="16dp" />
</android.support.v4.widget.DrawerLayout>
android:elevation="16dp"
android:focusable="true" />
</android.support.v4.widget.DrawerLayout>

View file

@ -49,8 +49,9 @@
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_gravity="center_horizontal"
tools:ignore="ContentDescription"
tools:src="@drawable/ic_launcher"/>
</LinearLayout>
</ScrollView>
</ScrollView>

View file

@ -78,6 +78,7 @@
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/inner"
android:background="@null"
android:contentDescription="@string/open_file_manager"
android:paddingBottom="5dp"
android:paddingEnd="20dp"
android:paddingLeft="25dp"