mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 13:17:43 +00:00
Fix NPE
This commit is contained in:
parent
7331bd5392
commit
080f511cce
@ -188,6 +188,11 @@ public class FindMyPhonePlugin extends Plugin {
|
||||
}
|
||||
|
||||
void stopPlaying() {
|
||||
if (audioManager == null) {
|
||||
// The Plugin was destroyed (probably the device disconnected)
|
||||
return;
|
||||
}
|
||||
|
||||
if (previousVolume != -1) {
|
||||
audioManager.setStreamVolume(AudioManager.STREAM_ALARM, previousVolume, 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user