summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java
diff options
context:
space:
mode:
authorakuma <n3k0@pc.localdomain>2019-08-09 01:19:19 +0200
committerakuma <n3k0@pc.localdomain>2019-08-09 01:19:19 +0200
commitf510feb3130f7f28a5b9116c903a33e92d37ba5c (patch)
treef3c725e89210de870eef30c1f043d1afbff45564 /app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java
parent302f41085f460e67934166a3da55fa746eeaf7e2 (diff)
Commented allow apps switch. Allow app fragment title
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java b/app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java
index f930b278..a563978a 100644
--- a/app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java
+++ b/app/src/main/java/se/leap/bitmaskclient/fragments/Settings_Allowed_Apps.java
@@ -39,8 +39,7 @@ import java.util.Set;
import java.util.Vector;
import de.blinkt.openvpn.VpnProfile;
-import se.leap.bitmaskclient.EipSetupListener;
-import se.leap.bitmaskclient.EipSetupObserver;
+
import se.leap.bitmaskclient.R;
/**
@@ -274,7 +273,7 @@ public class Settings_Allowed_Apps extends Fragment implements AdapterView.OnIte
allow_apps = this.getContext().getSharedPreferences("BITMASK", Context.MODE_MULTI_PROCESS);
allow_apps_editor = allow_apps.edit();
- apps = new HashSet<String>(allow_apps.getStringSet("ALLOW_APPS", new HashSet<String>()));
+ apps = allow_apps.getStringSet("ALLOW_APPS", new HashSet<String>());
// /String profileUuid = getArguments().getString(getActivity().getPackageName() + ".profileUUID");
// mProfile = EipSetupObserver.getProfile();
@@ -322,18 +321,19 @@ public class Settings_Allowed_Apps extends Fragment implements AdapterView.OnIte
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.allowed_vpn_apps, container, false);
- mDefaultAllowTextView = (TextView) v.findViewById(R.id.default_allow_text);
-
- Switch vpnOnDefaultSwitch = (Switch) v.findViewById(R.id.default_allow);
+// mDefaultAllowTextView = (TextView) v.findViewById(R.id.default_allow_text);
- vpnOnDefaultSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
- @Override
- public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
- changeDisallowText(isChecked);
- mProfile.mAllowedAppsVpnAreDisallowed = isChecked;
- }
- });
+// Switch vpnOnDefaultSwitch = (Switch) v.findViewById(R.id.default_allow);
+//
+// vpnOnDefaultSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+// @Override
+// public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
+//
+// changeDisallowText(isChecked);
+// mProfile.mAllowedAppsVpnAreDisallowed = isChecked;
+// }
+// });
// vpnOnDefaultSwitch.setChecked(mProfile.mAllowedAppsVpnAreDisallowed);