Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcf7b1f6 authored by Yorke Lee's avatar Yorke Lee
Browse files

Fix NPE if phone ringtone is set to None

Bug: 18418803
Change-Id: I50e5903cfe75da02e94a888e24c97d03cb7607c5
parent 045b6c98
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -196,7 +196,9 @@ class AsyncRingtonePlayer {
        }

        Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri);
        if (ringtone != null) {
            ringtone.setStreamType(AudioManager.STREAM_RING);
        }
        return ringtone;
    }
}