From 0f4f811e28e1362a70c1a4d79be75b09a654a0e9 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 29 Jun 2014 08:30:37 +0200 Subject: [PATCH] Fix lint warnings/errors --- res/values-it/strings.xml | 1 - res/values/strings.xml | 4 ++-- src/biz/bokhorst/xprivacy/ActivityApp.java | 5 ++++- src/biz/bokhorst/xprivacy/ActivityShare.java | 2 ++ src/biz/bokhorst/xprivacy/ActivityUsage.java | 2 ++ 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index 1f4831590..09e3b59ac 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -106,7 +106,6 @@ tuttavia non รจ possibile garantire che funzioni perfettamente su qualunque disp Nomi file Comandi Shell URLs - /proc Seleziona per restringere: Seleziona per consentire Filtra per dati di utilizzo diff --git a/res/values/strings.xml b/res/values/strings.xml index eafdcac08..546d63d83 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -114,7 +114,7 @@ however it is impossible to guarantee it will work flawlessly on each and every File names Shell commands URLs - /proc + /proc Check to restrict: Check to allow: Filter on data usage @@ -214,4 +214,4 @@ however it is impossible to guarantee it will work flawlessly on each and every Manage XPrivacy restrictions and settings 10620ae961d78854f6c9cd872c4388232849c799 - + \ No newline at end of file diff --git a/src/biz/bokhorst/xprivacy/ActivityApp.java b/src/biz/bokhorst/xprivacy/ActivityApp.java index e0971e14e..7e75f7f61 100644 --- a/src/biz/bokhorst/xprivacy/ActivityApp.java +++ b/src/biz/bokhorst/xprivacy/ActivityApp.java @@ -976,7 +976,7 @@ protected Object doInBackground(Object... params) { } @Override - @SuppressLint("DefaultLocale") + @SuppressLint({ "DefaultLocale", "InflateParams" }) protected void onPostExecute(Object result) { if (!ActivityApp.this.isFinishing()) { // Build dialog @@ -1080,6 +1080,7 @@ public ViewHolder(View theRow, int thePosition) { } @Override + @SuppressLint("InflateParams") public View getView(final int position, View convertView, ViewGroup parent) { final ViewHolder holder; if (convertView == null) { @@ -1368,6 +1369,7 @@ protected void onPostExecute(Object result) { } @Override + @SuppressLint("InflateParams") public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { GroupViewHolder holder; if (convertView == null) { @@ -1661,6 +1663,7 @@ protected void onPostExecute(Object result) { } @Override + @SuppressLint("InflateParams") public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { ChildViewHolder holder; diff --git a/src/biz/bokhorst/xprivacy/ActivityShare.java b/src/biz/bokhorst/xprivacy/ActivityShare.java index bbfc57dec..146cfb0f4 100644 --- a/src/biz/bokhorst/xprivacy/ActivityShare.java +++ b/src/biz/bokhorst/xprivacy/ActivityShare.java @@ -503,6 +503,7 @@ public ViewHolder(View theRow, int thePosition) { } @Override + @SuppressLint("InflateParams") public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { @@ -1661,6 +1662,7 @@ protected void onPostExecute(Throwable result) { } } + @SuppressLint("InflateParams") public static boolean registerDevice(final ActivityBase context) { int userId = Util.getUserId(Process.myUid()); if (Util.hasProLicense(context) == null diff --git a/src/biz/bokhorst/xprivacy/ActivityUsage.java b/src/biz/bokhorst/xprivacy/ActivityUsage.java index c47fb1e69..a06867d4a 100644 --- a/src/biz/bokhorst/xprivacy/ActivityUsage.java +++ b/src/biz/bokhorst/xprivacy/ActivityUsage.java @@ -10,6 +10,7 @@ import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory; +import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.graphics.Color; @@ -294,6 +295,7 @@ public void onClick(View view) { } @Override + @SuppressLint("InflateParams") public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) {