Skip to content

Commit

Permalink
Merge pull request #312 from aritra-tech/develop
Browse files Browse the repository at this point in the history
Fixed the bug regarding Alarm Manager
  • Loading branch information
aritra-tech authored Dec 30, 2023
2 parents f5c453d + b3b516c commit bb25fd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ android {
applicationId = "com.aritra.notify"
minSdk = 24
targetSdk = 34
versionCode = 11
versionName = "1.8.1"
versionCode = 12
versionName = "1.8.2"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class AlarmSchedulerImpl @Inject constructor(private val context: Context) : Ala
if (alarmManager.canScheduleExactAlarms()) {
// NO OP for now
} else {
context.startActivity(Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM))
val intent = Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM)
.apply { addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) }
context.startActivity(intent)
}
} else {
// NO OP for now
Expand Down

0 comments on commit bb25fd1

Please sign in to comment.