diff options
author | Arne Schwabe <arne@rfc2549.org> | 2015-08-04 18:24:30 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2015-08-04 18:24:30 +0200 |
commit | be1a65fcba3b30a21cbac3bddde7bdcac8831a9c (patch) | |
tree | 49eea3891e216bdc9a922570a2173321dbf2b668 | |
parent | 1bd87097083e0db4c72dcf075a3939148129a6e1 (diff) |
Fix crash in recycler view
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java | 1 | ||||
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/fragments/Settings_Connections.java | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java b/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java index 3251fc0a..34fc09ed 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java @@ -125,7 +125,6 @@ public class ConnectionsAdapter extends RecyclerView.Adapter<ConnectionsAdapter. { connection.mUseCustomConfig = isChecked; cH.mCustomOptionsLayout.setVisibility(connection.mUseCustomConfig ? View.VISIBLE : View.GONE); - notifyItemChanged(i); } }); diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Connections.java b/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Connections.java index 530d1df8..03c5f27e 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Connections.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/Settings_Connections.java @@ -65,7 +65,6 @@ public class Settings_Connections extends Settings_Fragment implements View.OnCl mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.VERTICAL,false)); mRecyclerView.setAdapter(mConnectionsAdapter); - ImageButton fab_button = (ImageButton) v.findViewById(R.id.add_new_remote); if(fab_button!=null) fab_button.setOnClickListener(this); |