Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…MP-kotlin into streak_widget_api_changes
  • Loading branch information
anjumg03 committed Aug 27, 2024
2 parents dc5a165 + 8053599 commit 96526bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Lamp : Service() {
val foreground = IntentFilter()
foreground.addAction(ACTION_LAMP_PRIORITY_FOREGROUND)
foreground.addAction(ACTION_LAMP_PRIORITY_BACKGROUND)
registerReceiver(foregroundMgr, foreground)
registerReceiver(foregroundMgr, foreground, RECEIVER_EXPORTED)
if (Environment.getExternalStorageState() != Environment.MEDIA_MOUNTED) {
stopSelf()
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Screen : Service() {
filter.addAction(Intent.ACTION_SCREEN_OFF)
filter.addAction(Intent.ACTION_USER_PRESENT)
filter.addAction(ACTION_LAMP_SCREEN_BOOT)
registerReceiver(screenMonitor, filter)
registerReceiver(screenMonitor, filter, RECEIVER_EXPORTED)
val pm = getSystemService(POWER_SERVICE) as PowerManager
val km = getSystemService(KEYGUARD_SERVICE) as KeyguardManager
if (pm.isInteractive) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class TelephonySensor : Service() {
phoneCallReceiver = PhonecallReceiver()
val filter = IntentFilter()
filter.addAction("android.intent.action.PHONE_STATE")
registerReceiver(phoneCallReceiver, filter)
registerReceiver(phoneCallReceiver, filter, RECEIVER_EXPORTED)
}
if (Lamp.DEBUG) Log.d(TAG, "Telephony service active...")
return START_REDELIVER_INTENT
Expand Down

0 comments on commit 96526bc

Please sign in to comment.