fix various lint errors

This commit is contained in:
Phillip Thelen 2016-06-21 14:26:51 +02:00
parent a1aff4e47c
commit 52c0ab48b9
7 changed files with 25 additions and 12 deletions

View file

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.habitrpg.android.habitica"
android:versionCode="90"
android:versionCode="91"
android:versionName="0.0.31.0"
android:screenOrientation="portrait"
android:installLocation="auto" >

View file

@ -198,6 +198,10 @@ android {
javaMaxHeapSize "2g" // Use gig increments depending on needs
incremental true
}
lintOptions {
disable 'UnusedResources'
}
}
def Properties props = new Properties()

View file

@ -42,13 +42,13 @@
android:layout_height="wrap_content"
android:id="@+id/tutorialTextView"
android:layout_gravity="bottom"
android:textSize="20sp"
android:text="jerwerwe rwe r we rwerewioro ikljhrwe rjhwek rhjwekr jhwke rhjwke jrhwkelgrfwe r" />
android:textSize="20sp" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
style="?android:attr/buttonBarStyle" >
<Button
android:layout_width="0px"
@ -57,7 +57,8 @@
android:text="@string/dismiss_tutorial"
android:id="@+id/dismissButton"
android:layout_gravity="center_vertical"
android:theme="@style/DialogButton" />
android:theme="@style/DialogButton"
style="?android:attr/buttonBarButtonStyle" />
<Button
android:layout_width="0px"
@ -66,7 +67,8 @@
android:text="@string/complete_tutorial"
android:id="@+id/completeButton"
android:layout_gravity="center_vertical"
android:theme="@style/DialogButton" />
android:theme="@style/DialogButton"
style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
</LinearLayout>

View file

@ -12,7 +12,8 @@
android:layout_weight="1"
android:layout_height="wrap_content"
android:textColor="@android:color/black"
android:focusable="false" />
android:focusable="false"
android:inputType="date"/>
<Button
style="?android:attr/buttonStyleSmall"

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
@ -11,7 +12,7 @@
type="Task" />
</data>
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
@ -30,8 +31,7 @@
</data>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/bar_padding"

View file

@ -406,6 +406,11 @@ public class AvatarView extends View {
return multiDraweeHolder.onTouchEvent(event) || super.onTouchEvent(event);
}
@Override
public boolean performClick() {
return super.performClick();
}
@Override
protected boolean verifyDrawable(Drawable who) {
return multiDraweeHolder.verifyDrawable(who) || super.verifyDrawable(who);