Skip to content

Commit

Permalink
Enable bluetooth if it is not active when the user starts scanning fo…
Browse files Browse the repository at this point in the history
…r a device
  • Loading branch information
SkyeOfBreeze committed Dec 11, 2019
1 parent a487500 commit d3e7e40
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ class MainActivity : AppCompatActivity(), RemoReceiver.RemoListener {
if(!it.isEnabled)
it.enable()
}
bleLayout?.show()
handler.postDelayed({
if(bleLayout?.isShown != true && !isFinishing)
bleLayout?.show()
}, 500)
}
}

Expand Down

0 comments on commit d3e7e40

Please sign in to comment.