From 6ca9e52f2f3f1d75bb6c8e10fa654a68a4cbf66a Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Thu, 26 Nov 2015 19:11:31 +0100 Subject: [PATCH] made lint ignore some code and layout warnings --- app/src/main/AndroidManifest.xml | 4 +++- .../java/org/schabi/newpipe/VideoItemDetailFragment.java | 2 ++ .../res/layout-sw600dp-land/activity_videoitem_list.xml | 6 ++++-- app/src/main/res/values/settings_keys.xml | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 07029455e..e29d0101d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,5 +1,6 @@ @@ -10,7 +11,8 @@ android:icon="@mipmap/ic_launcher" android:logo="@mipmap/ic_launcher" android:label="@string/app_name" - android:theme="@style/AppTheme" > + android:theme="@style/AppTheme" + tools:ignore="AllowBackup"> diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java b/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java index 8211962d0..3fe8a1548 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java @@ -1,5 +1,6 @@ package org.schabi.newpipe; +import android.annotation.SuppressLint; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; @@ -241,6 +242,7 @@ public class VideoItemDetailFragment extends Fragment { thumbsUpView.setText(nf.format(info.like_count)); thumbsDownView.setText(nf.format(info.dislike_count)); + @SuppressLint("SimpleDateFormat") SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); Date datum = null; try { diff --git a/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml b/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml index bdf17b8af..ea7b16d2c 100644 --- a/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml +++ b/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml @@ -25,7 +25,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:iconifiedByDefault="false" - android:focusable="false"/> + android:focusable="false" + tools:ignore="InconsistentLayout" /> + android:layout_height="match_parent" + tools:ignore="InconsistentLayout" /> diff --git a/app/src/main/res/values/settings_keys.xml b/app/src/main/res/values/settings_keys.xml index f1cd7ebaf..de60976d7 100644 --- a/app/src/main/res/values/settings_keys.xml +++ b/app/src/main/res/values/settings_keys.xml @@ -1,5 +1,5 @@ - + settings_categoery_video_audio settings_category_video_info