2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00
This commit is contained in:
Albert Vaca
2020-01-10 12:50:14 +01:00
parent 9c19fd9b41
commit aa69b67cfe

View File

@@ -172,7 +172,7 @@ public class FindMyPhonePlugin extends Plugin {
}
void startPlaying() {
if (!mediaPlayer.isPlaying()) {
if (mediaPlayer != null && !mediaPlayer.isPlaying()) {
// Make sure we are heard even when the phone is silent, restore original volume later
previousVolume = audioManager.getStreamVolume(AudioManager.STREAM_ALARM);
audioManager.setStreamVolume(AudioManager.STREAM_ALARM, audioManager.getStreamMaxVolume(AudioManager.STREAM_ALARM), 0);