mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
fix various lint errors
This commit is contained in:
parent
a1aff4e47c
commit
52c0ab48b9
7 changed files with 25 additions and 12 deletions
|
|
@ -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" >
|
||||
|
|
|
|||
|
|
@ -198,6 +198,10 @@ android {
|
|||
javaMaxHeapSize "2g" // Use gig increments depending on needs
|
||||
incremental true
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
disable 'UnusedResources'
|
||||
}
|
||||
}
|
||||
|
||||
def Properties props = new Properties()
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue