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

Commit 0f9b13d8 authored by Roman Birg's avatar Roman Birg
Browse files

Settings: check current ringtone for non-default sub ids



Otherwise the default phone sub's selection would always be pre-selected
regardless of the actual selection.

Ticket: CYNGNOS-2396

Change-Id: Ia33df47228eb2a49d48c80535876756b4ba1abf1
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
(cherry picked from commit 791434fd)
parent a1f92b7c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -55,7 +55,11 @@ public class DefaultRingtonePreference extends RingtonePreference {

    @Override
    protected Uri onRestoreRingtone() {
        if (getRingtoneType() == RingtoneManager.TYPE_RINGTONE) {
            return RingtoneManager.getActualRingtoneUriBySubId(getContext(), getSubId());
        } else {
            return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
        }
    }

}