diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-14 18:40:46 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-14 18:40:46 -0500 |
commit | ab6f964ab5d2b72f5945eebdd1f0d056e8d87bfe (patch) | |
tree | 4fccb1a35b4e40eb7e89cf60ddc8b5acbc8d43f0 /app | |
parent | 95e62ad279673f84da8bf15ca88b913a572e16a9 (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')
-rw-r--r-- | app/src/main/java/com/wireguard/android/ConfigListFragment.java | 2 |
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, |