Lift assignment out of if
This commit is contained in:
@ -643,10 +643,10 @@ class MainActivity : AppCompatActivity() {
|
|||||||
delegate.applyDayNight()
|
delegate.applyDayNight()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (am.mode == AudioManager.MODE_RINGTONE)
|
volumeControlStream = if (am.mode == AudioManager.MODE_RINGTONE)
|
||||||
volumeControlStream = AudioManager.STREAM_RING
|
AudioManager.STREAM_RING
|
||||||
else
|
else
|
||||||
volumeControlStream = AudioManager.STREAM_VOICE_CALL
|
AudioManager.STREAM_VOICE_CALL
|
||||||
|
|
||||||
window.decorView.post {
|
window.decorView.post {
|
||||||
if (firstRun) {
|
if (firstRun) {
|
||||||
|
|||||||
Reference in New Issue
Block a user