summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2026-04-13 17:36:36 +0200
committercyberta <cyberta@riseup.net>2026-04-15 23:56:05 +0000
commitb986a3b0db227e06d9ebb4e3ca29d3b35c7063d4 (patch)
tree45bf976a243d1bc08d616e2d9451c573c63b9552 /app/src/main/java/se
parent0048825b5a71d9f6f6676c8bac87e95dfbf14385 (diff)
remove unnecessary VpnProfile member variable from ExcludeAppsFragment
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/fragments/ExcludeAppsFragment.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/fragments/ExcludeAppsFragment.java b/app/src/main/java/se/leap/bitmaskclient/base/fragments/ExcludeAppsFragment.java
index 62bb574f..2e38a11e 100644
--- a/app/src/main/java/se/leap/bitmaskclient/base/fragments/ExcludeAppsFragment.java
+++ b/app/src/main/java/se/leap/bitmaskclient/base/fragments/ExcludeAppsFragment.java
@@ -51,9 +51,7 @@ import se.leap.bitmaskclient.base.views.SimpleCheckBox;
public class ExcludeAppsFragment extends Fragment implements SimpleCheckBox.OnCheckedChangeListener {
private static final String TAG = ExcludeAppsFragment.class.getSimpleName();
private RecyclerView mRecyclerView;
- private VpnProfile mProfile;
private PackageAdapter mListAdapter;
-
private Set<String> apps;
static class AppViewHolder extends RecyclerView.ViewHolder {
@@ -145,9 +143,8 @@ public class ExcludeAppsFragment extends Fragment implements SimpleCheckBox.OnCh
}
}
- PackageAdapter(Context c, VpnProfile vp) {
+ PackageAdapter(Context c) {
mAppInfoManager = new ApplicationInfoManager(c);
- mProfile = vp;
mInflater = LayoutInflater.from(c);
mPackages = new Vector<>();
@@ -269,7 +266,7 @@ public class ExcludeAppsFragment extends Fragment implements SimpleCheckBox.OnCh
mRecyclerView = v.findViewById(R.id.list);
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
- mListAdapter = new PackageAdapter(getActivity(), mProfile);
+ mListAdapter = new PackageAdapter(getActivity());
mRecyclerView.setAdapter(mListAdapter);
ViewHelper.setActionBarSubtitle(this, exclude_apps_fragment_title);
@@ -282,7 +279,6 @@ public class ExcludeAppsFragment extends Fragment implements SimpleCheckBox.OnCh
@Override
public void onDestroyView() {
- Log.d(TAG, "onDestroyView");
mRecyclerView.setAdapter(null);
mListAdapter = null;
super.onDestroyView();