summaryrefslogtreecommitdiff
path: root/vpndialogxposed/src/main/java/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-07-02 15:07:37 +0200
committerArne Schwabe <arne@rfc2549.org>2014-07-02 15:07:37 +0200
commit420b7d6a3a8045b522035a4ea87ef4f8092f38a9 (patch)
tree8a7ade08fe2a2cd9a200de03b5fcfd858d258053 /vpndialogxposed/src/main/java/de
parente1bf276c709a1f26fd99540081128bff879650ce (diff)
Silence deprecation warning in xposed module
--HG-- extra : rebase_source : bedaaa15ad9b43c5aa644358ffbbc359eb22905b
Diffstat (limited to 'vpndialogxposed/src/main/java/de')
-rw-r--r--vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java b/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java
index 638ca2ba..0e7dc326 100644
--- a/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java
+++ b/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java
@@ -2,23 +2,23 @@ package de.blinkt.vpndialogxposed;
import android.Manifest;
import android.app.ListActivity;
-import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
-import android.content.pm.*;
+import android.content.pm.PackageInfo;
+import android.content.pm.PackageManager;
+import android.content.pm.ServiceInfo;
import android.os.Bundle;
import android.widget.AbsListView;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.util.*;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Random;
+import java.util.Set;
+import java.util.Vector;
-/**
- * Created by arne on 06.10.13.
- */
public class AllowedVPNsChooser extends ListActivity {
public static final String ALLOWED_APPS = "allowedApps";
@@ -47,7 +47,7 @@ public class AllowedVPNsChooser extends ListActivity {
private Collection<String> getAllowedApps(){
- SharedPreferences prefs = getPreferences(MODE_WORLD_READABLE);
+ @SuppressWarnings("deprecation") SharedPreferences prefs = getPreferences(MODE_WORLD_READABLE);
HashSet<String> defaultapps = new HashSet<String>();
defaultapps.add("de.blinkt.openvpn");
return prefs.getStringSet(ALLOWED_APPS,defaultapps );
@@ -55,7 +55,7 @@ public class AllowedVPNsChooser extends ListActivity {
private void saveAllowedApps(Set<String> allowedApps)
{
- SharedPreferences prefs = getPreferences(MODE_WORLD_READABLE);
+ @SuppressWarnings("deprecation") SharedPreferences prefs = getPreferences(MODE_WORLD_READABLE);
SharedPreferences.Editor prefeditor = prefs.edit();
prefeditor.putStringSet(ALLOWED_APPS,allowedApps);
prefeditor.putInt("random",new Random().nextInt());