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 | 6604be94ebd82a3b2cdcf4f78001e36946cec622 (patch) | |
tree | 4fccb1a35b4e40eb7e89cf60ddc8b5acbc8d43f0 /app/src/main/java | |
parent | e6a6605ff848376f7da1d65381e987396aa359be (diff) |
ListFragment: Don't assume the ListView is the root
It may share the layout with a FAB, and that requires a parent
ViewGroup.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java')
-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, |