Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b27231f authored by Jack He's avatar Jack He Committed by android-build-merger
Browse files

Fix a crash when an app requests Bluetooth to be discoverable

am: ebbfce0b

Change-Id: I3fcdf1abcf7ce42b7f95dc9ca34aad6dac03daff
parents 01994686 ebbfce0b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -180,8 +180,8 @@ public class RequestPermissionActivity extends Activity implements
                builder.setMessage(message);
            } else {
                CharSequence message = mAppLabel != null
                        ? getString(R.string.bluetooth_ask_discovery, mAppLabel)
                        : getString(R.string.bluetooth_ask_discovery_no_name);
                        ? getString(R.string.bluetooth_ask_discovery, mAppLabel, mTimeout)
                        : getString(R.string.bluetooth_ask_discovery_no_name, mTimeout);
                builder.setMessage(message);
            }
            builder.setPositiveButton(getString(R.string.allow), this);