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:
parent
533557c135
commit
e800286bc1
4 changed files with 16 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue