Skip to content

Commit

Permalink
triggerBedtimeAutomaticZenRule
Browse files Browse the repository at this point in the history
makes intent explicit (#818)
  • Loading branch information
forrestguice committed Sep 3, 2024
1 parent 6560516 commit 9e00d2f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import android.service.notification.ConditionProviderService;
import android.util.Log;

import com.forrestguice.suntimeswidget.BuildConfig;
import com.forrestguice.suntimeswidget.R;

@TargetApi(24)
Expand Down Expand Up @@ -144,8 +145,10 @@ public static Condition createAutomaticZenRuleCondition(String summary, boolean
@TargetApi(24)
public static void triggerBedtimeAutomaticZenRule(final Context context, boolean value)
{
Log.d("DEBUG", "BedtimeConditionService :: triggerAutomaticZenRule: " + value);
Intent intent = new Intent();
intent.setAction(ACTION_BEDTIME_UPDATE);
intent.setPackage(BuildConfig.APPLICATION_ID);
context.sendBroadcast(intent);
}

Expand Down

0 comments on commit 9e00d2f

Please sign in to comment.