diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2022-01-10 00:31:03 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 19:01:03 +0000 |
| commit | cfceb38ee72896dad3701dcf3f12d8480166e009 (patch) | |
| tree | bf6fca975c92e2756d0a5cb6a527300193cbc7ea /app/src/main/java/dev/msfjarvis/aps/util/services/ClipboardService.kt | |
| parent | 35155e55841bc87b2c0e0dc577e1433041b44bc5 (diff) | |
| download | HardenedPass-cfceb38ee72896dad3701dcf3f12d8480166e009.tar.gz HardenedPass-cfceb38ee72896dad3701dcf3f12d8480166e009.zip | |
Fix a bunch of Lint warnings and errors (#1655)
* autofill-parser: add missing `@RequiresApi` annotations
* app: remove unused strings and sync with Crowdin
* app: remove unused chip_text_color selector
* app: remove unused capitalization_type_values array
* app: add `PendingIntent.FLAG_IMMUTABLE` flag where required
Diffstat (limited to 'app/src/main/java/dev/msfjarvis/aps/util/services/ClipboardService.kt')
| -rw-r--r-- | app/src/main/java/dev/msfjarvis/aps/util/services/ClipboardService.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/util/services/ClipboardService.kt b/app/src/main/java/dev/msfjarvis/aps/util/services/ClipboardService.kt index 84de5c91..808089ab 100644 --- a/app/src/main/java/dev/msfjarvis/aps/util/services/ClipboardService.kt +++ b/app/src/main/java/dev/msfjarvis/aps/util/services/ClipboardService.kt @@ -115,7 +115,12 @@ class ClipboardService : Service() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { PendingIntent.getForegroundService(this, 0, clearIntent, PendingIntent.FLAG_UPDATE_CURRENT) } else { - PendingIntent.getService(this, 0, clearIntent, PendingIntent.FLAG_UPDATE_CURRENT) + PendingIntent.getService( + this, + 0, + clearIntent, + PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE + ) } val notification = if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { |
