Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fix lint warnings/errors
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jun 29, 2014
1 parent 9b48a24 commit 0f4f811
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ tuttavia non è possibile garantire che funzioni perfettamente su qualunque disp
<string name="whitelist_filename">Nomi file</string>
<string name="whitelist_command">Comandi Shell</string>
<string name="whitelist_url">URLs</string>
<string name="whitelist_proc">/proc</string>
<string name="title_restrict">Seleziona per restringere:</string>
<string name="title_check_whitelist">Seleziona per consentire</string>
<string name="title_fused">Filtra per dati di utilizzo</string>
Expand Down
4 changes: 2 additions & 2 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ however it is impossible to guarantee it will work flawlessly on each and every
<string name="whitelist_filename" tools:ignore="UnusedResources">File names</string>
<string name="whitelist_command" tools:ignore="UnusedResources">Shell commands</string>
<string name="whitelist_url" tools:ignore="UnusedResources">URLs</string>
<string name="whitelist_proc" tools:ignore="UnusedResources">/proc</string>
<string name="whitelist_proc" translatable="false" tools:ignore="UnusedResources">/proc</string>
<string name="title_restrict">Check to restrict:</string>
<string name="title_check_whitelist">Check to allow:</string>
<string name="title_fused">Filter on data usage</string>
Expand Down Expand Up @@ -214,4 +214,4 @@ however it is impossible to guarantee it will work flawlessly on each and every
<string name="permission_restrictions">Manage XPrivacy restrictions and settings</string>
<string name="fingerprint" translatable="false">10620ae961d78854f6c9cd872c4388232849c799</string>

</resources>
</resources>
5 changes: 4 additions & 1 deletion src/biz/bokhorst/xprivacy/ActivityApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/biz/bokhorst/xprivacy/ActivityShare.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/biz/bokhorst/xprivacy/ActivityUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0f4f811

Please sign in to comment.