Skip to content

Commit

Permalink
Commit missed file
Browse files Browse the repository at this point in the history
  • Loading branch information
KieronQuinn committed Oct 27, 2023
1 parent 0451f98 commit 2914e97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import android.content.Intent
import android.content.IntentFilter
import android.database.ContentObserver
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.os.UserHandle
import android.provider.Settings
Expand Down Expand Up @@ -468,10 +469,15 @@ class ControlsControllerImpl constructor (
addCategory(Intent.CATEGORY_LAUNCHER)
this.`package` = componentName.packageName
}
val flags = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
} else {
PendingIntent.FLAG_UPDATE_CURRENT
}
val pendingIntent = PendingIntent.getActivity(context,
componentName.hashCode(),
intent,
0)
flags)
val control = Control.StatelessBuilder(controlInfo.controlId, pendingIntent)
.setTitle(controlInfo.controlTitle)
.setSubtitle(controlInfo.controlSubtitle)
Expand Down
2 changes: 1 addition & 1 deletion app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 170,
"versionCode": 171,
"versionName": "1.7.1",
"outputFile": "app-release.apk"
}
Expand Down

0 comments on commit 2914e97

Please sign in to comment.