summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r--app/src/main/java/com/wireguard/android/ConfigListFragment.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/java/com/wireguard/android/ConfigListFragment.java b/app/src/main/java/com/wireguard/android/ConfigListFragment.java
index c086e40d..bc44e05e 100644
--- a/app/src/main/java/com/wireguard/android/ConfigListFragment.java
+++ b/app/src/main/java/com/wireguard/android/ConfigListFragment.java
@@ -44,8 +44,7 @@ public class ConfigListFragment extends BaseConfigFragment {
final ConfigListFragmentBinding binding =
ConfigListFragmentBinding.inflate(inflater, parent, false);
binding.setConfigs(VpnService.getInstance().getConfigs());
- final View root = binding.getRoot();
- listView = root.findViewById(R.id.config_list);
+ listView = binding.configList;
listView.setMultiChoiceModeListener(new ConfigListModeListener());
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
@@ -67,7 +66,7 @@ public class ConfigListFragment extends BaseConfigFragment {
});
binding.executePendingBindings();
setConfigChecked(getCurrentConfig());
- return root;
+ return binding.getRoot();
}
@Override