summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-14 18:40:46 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-14 18:40:46 -0500
commitab6f964ab5d2b72f5945eebdd1f0d056e8d87bfe (patch)
tree4fccb1a35b4e40eb7e89cf60ddc8b5acbc8d43f0 /app/src/main/java/com
parent95e62ad279673f84da8bf15ca88b913a572e16a9 (diff)
ListFragment: Don't assume the ListView is the root
It may share the layout with a FAB, and that requires a parent ViewGroup.
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r--app/src/main/java/com/wireguard/android/ConfigListFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/ConfigListFragment.java b/app/src/main/java/com/wireguard/android/ConfigListFragment.java
index 870453d7..9dbf77d9 100644
--- a/app/src/main/java/com/wireguard/android/ConfigListFragment.java
+++ b/app/src/main/java/com/wireguard/android/ConfigListFragment.java
@@ -23,7 +23,7 @@ public class ConfigListFragment extends BaseConfigFragment {
final ConfigListFragmentBinding binding =
ConfigListFragmentBinding.inflate(inflater, parent, false);
binding.setConfigs(VpnService.getInstance().getConfigs());
- final ListView listView = (ListView) binding.getRoot();
+ final ListView listView = binding.getRoot().findViewById(R.id.config_list);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(final AdapterView<?> parent, final View view,