Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Sep 5, 2022
1 parent 7373f2a commit 26f6e12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ class StartWirelessAdbViewHolder(binding: HomeStartWirelessAdbBinding, root: Vie

@RequiresApi(Build.VERSION_CODES.R)
private fun onPairClicked(context: Context) {
if (context.display?.displayId ?: -1 > 0) {
if ((context.display?.displayId ?: -1) > 0) {
// Running in a multi-display environment (e.g., Windows Subsystem for Android),
// pairing dialog can be displayed simultaneously with Shizuku.
// Input from notification is harder to use under this situation
// Input from notification is harder to use under this situation.
AdbPairDialogFragment().show(context.asActivity<FragmentActivity>().supportFragmentManager)
} else {
context.startActivity(Intent(context, AdbPairingTutorialActivity::class.java))
Expand Down

0 comments on commit 26f6e12

Please sign in to comment.