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

Commit 2eabe191 authored by hoffc's avatar hoffc Committed by Linux Build Service Account
Browse files

DeskClock: Fix the issue of auto silence setting do not take effect.

Enter clock setting activity, change the value of "silence after", and then
add a new alarm, the alarm do not auto silence after the given time.

Change-Id: I93fbc0424ad3fb094868e886768f5e66b0fcb641
CRs-Fixed: 1052745
parent 62d27f5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ public final class AlarmInstance implements ClockContract.InstancesColumns {
     * @return the time when alarm should be silence, or null if never
     */
    public Calendar getTimeout(Context context) {
        String timeoutSetting = PreferenceManager.getDefaultSharedPreferences(context)
        String timeoutSetting = Utils.getDefaultSharedPreferences(context)
                .getString(SettingsActivity.KEY_AUTO_SILENCE, null);
        if (timeoutSetting == null) {
            timeoutSetting = context.getResources()