1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Fix ACTION_DST_CHANGED action

This commit is contained in:
José Rebelo 2023-09-02 11:08:19 +01:00
parent a4c79a9395
commit 4c7cb1cadc

View File

@ -92,8 +92,7 @@ public class TimeChangeReceiver extends BroadcastReceiver {
final long nextDstMillis = transition.getInstant().toEpochMilli();
final long delayMillis = nextDstMillis - now.toEpochMilli() + 5000L;
final Intent i = new Intent(context, TimeChangeReceiver.class);
i.setAction(ACTION_DST_CHANGED);
final Intent i = new Intent(ACTION_DST_CHANGED);
final PendingIntent pi = PendingIntentUtils.getBroadcast(context, 0, i, 0, false);
final AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);