Replies: 1 comment 3 replies
-
As far as I remember, Android 23 forces Earlier Android versions don't seem to have a problem with the flag set… so I'd rather remove the if condition from SyncUtils L53. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since bf18d02 the code unconditionally uses
PendingIntent.FLAG_IMMUTABLE
According to https://developer.android.com/reference/android/app/PendingIntent#FLAG_IMMUTABLE though, this flag was only introduced in API level 23.
As davx5 still supports API level 21 (according to app/build.gradle), should the usage of this flag be guarded by a version check?
Similar to what's already done in https://github.com/bitfireAT/davx5-ose/blob/dev-ose/app/src/main/java/at/bitfire/davdroid/syncadapter/SyncUtils.kt#L53
Beta Was this translation helpful? Give feedback.
All reactions