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

Commit d5553499 authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Adding log entries to track next alarm string modifications

Bug: 8597049
Change-Id: I71d3eca2832b467ae373fcd4a4ffabba512bdeae
parent e7683589
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -286,8 +286,10 @@ public class DigitalWidgetViewsFactory extends BroadcastReceiver implements Remo
            widget.setTextViewText(R.id.nextAlarm,
                    c.getString(R.string.control_set_alarm_with_existing, nextAlarm));
            widget.setViewVisibility(R.id.nextAlarm, View.VISIBLE);
            Log.v(TAG, "DigitalWidget sets next alarm string to " + nextAlarm);
        } else  {
            widget.setViewVisibility(R.id.nextAlarm, View.GONE);
            Log.v(TAG, "DigitalWidget sets next alarm string to null");
        }
    }
}
+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.database.Cursor;
import android.net.Uri;
import android.os.Parcel;
import android.provider.Settings;
import android.text.TextUtils;
import android.text.format.DateFormat;

import java.util.Calendar;
@@ -647,6 +648,8 @@ public class Alarms {
     * settings so those who care can make use of it.
     */
    static void saveNextAlarm(final Context context, String timeString) {
        Log.v("Setting next alarm string in system to " +
                (TextUtils.isEmpty(timeString) ? "null" : timeString));
        Settings.System.putString(context.getContentResolver(),
                                  Settings.System.NEXT_ALARM_FORMATTED,
                                  timeString);