made lint ignore some code and layout warnings

This commit is contained in:
Christian Schabesberger 2015-11-26 19:11:31 +01:00
parent 2afee89de3
commit 6ca9e52f2f
4 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.schabi.newpipe" > package="org.schabi.newpipe" >
<uses-permission android:name= "android.permission.INTERNET" /> <uses-permission android:name= "android.permission.INTERNET" />
@ -10,7 +11,8 @@
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:logo="@mipmap/ic_launcher" android:logo="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:theme="@style/AppTheme" > android:theme="@style/AppTheme"
tools:ignore="AllowBackup">
<activity <activity
android:name=".VideoItemListActivity" android:name=".VideoItemListActivity"
android:label="@string/app_name" > android:label="@string/app_name" >

View File

@ -1,5 +1,6 @@
package org.schabi.newpipe; package org.schabi.newpipe;
import android.annotation.SuppressLint;
import android.app.Activity; import android.app.Activity;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
@ -241,6 +242,7 @@ public class VideoItemDetailFragment extends Fragment {
thumbsUpView.setText(nf.format(info.like_count)); thumbsUpView.setText(nf.format(info.like_count));
thumbsDownView.setText(nf.format(info.dislike_count)); thumbsDownView.setText(nf.format(info.dislike_count));
@SuppressLint("SimpleDateFormat")
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
Date datum = null; Date datum = null;
try { try {

View File

@ -25,7 +25,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:iconifiedByDefault="false" android:iconifiedByDefault="false"
android:focusable="false"/> android:focusable="false"
tools:ignore="InconsistentLayout" />
<fragment android:id="@+id/videoitem_list" <fragment android:id="@+id/videoitem_list"
android:name="org.schabi.newpipe.VideoItemListFragment" android:name="org.schabi.newpipe.VideoItemListFragment"
@ -44,7 +45,8 @@
<FrameLayout android:id="@+id/videoitem_detail_container" <FrameLayout android:id="@+id/videoitem_detail_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent"
tools:ignore="InconsistentLayout" />
</LinearLayout> </LinearLayout>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources xmlns:tools="http://schemas.android.com/tools">
<!-- Categories --> <!-- Categories -->
<string name="settingsCategoryVideoAudio">settings_categoery_video_audio</string> <string name="settingsCategoryVideoAudio">settings_categoery_video_audio</string>
<string name="settingsCategoryVideoInfo">settings_category_video_info</string> <string name="settingsCategoryVideoInfo">settings_category_video_info</string>