2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +00:00
This commit is contained in:
Albert Vaca Cintora 2020-04-17 22:03:37 +02:00
parent 7331bd5392
commit 080f511cce

View File

@ -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);
}