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

Commit 44b25809 authored by Dan Pasanen's avatar Dan Pasanen
Browse files

Alarm: fix database indices

* QUERY_ALARMS_WITH_INSTANCES_COLUMNS has increasing ringtone (which
  is deprecated unless we intend to change the AOSP behavior of
  increasing volume to a per-alarm option) as index 9 and profile
  as index 10. Fix the indices of these to get the proper data back
  when we query.

* INSTANCE_STATE_INDEX should be a public int (likely what caused this
  oversight) like the other instance variables.

Change-Id: Ia24c238fca706094ed8c9c98cac35ca6b031e7ad
parent b2b2454d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -103,9 +103,9 @@ public final class Alarm implements Parcelable, ClockContract.AlarmsColumns {
    private static final int LABEL_INDEX = 6;
    private static final int RINGTONE_INDEX = 7;
    private static final int DELETE_AFTER_USE_INDEX = 8;
    private static final int INCREASING_VOLUME_INDEX = 10;
    private static final int PROFILE_INDEX = 11;
    private static final int INSTANCE_STATE_INDEX = 9;
    private static final int INCREASING_VOLUME_INDEX = 9;
    private static final int PROFILE_INDEX = 10;
    public static final int INSTANCE_STATE_INDEX = 9;
    public static final int INSTANCE_ID_INDEX = 10;
    public static final int INSTANCE_YEAR_INDEX = 11;
    public static final int INSTANCE_MONTH_INDEX = 12;