Skip to content

Commit

Permalink
Fix alarm invocation (on Android P?)
Browse files Browse the repository at this point in the history
  • Loading branch information
fridgecow committed Apr 26, 2019
1 parent d2a3321 commit 72e21f7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
applicationId "com.fridgecow.smartalarm"
minSdkVersion 24
targetSdkVersion 28
versionCode 18100
versionCode 18101
versionName "1.8.1"
}
buildTypes {
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
20 changes: 19 additions & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":180},"path":"app-release.apk","properties":{"packageId":"com.fridgecow.smartalarm","split":"","minSdkVersion":"25"}}]
[
{
"outputType": {
"type": "APK"
},
"apkInfo": {
"type": "MAIN",
"splits": [],
"versionCode": 18101,
"versionName": "1.8.1",
"enabled": true,
"outputFile": "app-release.apk",
"fullName": "release",
"baseName": "release"
},
"path": "app-release.apk",
"properties": {}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ public void onSensorChanged(SensorEvent event) {
private void activateAlarm() {
if (mPreferences.getBoolean("smartalarm_use", true)) {
Intent alarmIntent = new Intent(this, AlarmActivity.class);
alarmIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(alarmIntent);

triggerIFTTT(TRIGGER_ALARM);
Expand Down

0 comments on commit 72e21f7

Please sign in to comment.