diff options
Diffstat (limited to 'main/src/ui')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/Settings_Connections.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/Settings_Connections.kt b/main/src/ui/java/de/blinkt/openvpn/fragments/Settings_Connections.kt index 75b87157..8ed9d9ef 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/Settings_Connections.kt +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/Settings_Connections.kt @@ -50,8 +50,8 @@ class Settings_Connections : Settings_Fragment(), View.OnClickListener { mRecyclerView.layoutManager = LinearLayoutManager(activity, LinearLayoutManager.VERTICAL, false) mRecyclerView.adapter = mConnectionsAdapter - val fab_button = v.findViewById<View>(R.id.add_new_remote) as ImageButton - fab_button.setOnClickListener(this) + val fab_button = v.findViewById<View>(R.id.add_new_remote) as ImageButton? + fab_button?.setOnClickListener(this) mUseRandomRemote = v.findViewById<View>(R.id.remote_random) as Checkable mUseRandomRemote.isChecked = mProfile.mRemoteRandom mConnectionsAdapter.displayWarningIfNoneEnabled() |