Commit 8e4c68ed authored by Stefan Zabka's avatar Stefan Zabka
Browse files

fixed NPE in mood

parent 57f6bed7
Pipeline #2831 failed with stage
in 66 minutes and 15 seconds
...@@ -75,7 +75,7 @@ class MoodFragment : Fragment() { ...@@ -75,7 +75,7 @@ class MoodFragment : Fragment() {
bluetoothAdapter.bondedDevices.filter { it.address.startsWith(CARD10_BLUETOOTH_MAC_PREFIX, true) } bluetoothAdapter.bondedDevices.filter { it.address.startsWith(CARD10_BLUETOOTH_MAC_PREFIX, true) }
if (remoteDevices.isEmpty()) if (remoteDevices.isEmpty())
activity!!.finish() activity!!.finish()
gatt = remoteDevices.get(0).connectGatt(activity, false, callback) gatt = remoteDevices[0].connectGatt(activity, true, callback)
} }
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment