Fixed #388. Fixed notifications downloads on Android 12 (S) (#389)

This commit is contained in:
Juan Miguel Boyero Corral 2022-05-23 18:15:09 +02:00 committed by GitHub
parent 6a64bfa9fd
commit 90fb3640ed
8 changed files with 20 additions and 16 deletions

View File

@ -20,16 +20,10 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
- Device: [e.g. Google Pixel 2 XL]
- OS: [e.g. Android 12 (S)]
- Version: [e.g. 1.5.8]
**Additional context**
Add any other context about the problem here.

View File

@ -39,8 +39,8 @@ if (build_param != "prod") {
}
android {
compileSdkVersion 31
buildToolsVersion "31.0.0"
compileSdkVersion 32
buildToolsVersion "32.0.0"
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
@ -57,7 +57,7 @@ android {
versionCode androidGitVersion.code()
minSdkVersion 24
targetSdkVersion 31
targetSdkVersion 32
testApplicationId "es.ugr.swad.swadroid.test"
testInstrumentationRunner "android.test.InstrumentationTestRunner"

View File

@ -494,7 +494,7 @@ public class Notifications extends Module implements
pendingIntent = PendingIntent.getActivity(getApplicationContext(),
0,
notificationIntent,
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
if (!SyncUtils.isSyncAutomatically(getApplicationContext())) {
if (notifCount > 0) {

View File

@ -433,7 +433,7 @@ public class NotificationsSyncAdapterService extends Service {
pendingIntent = PendingIntent.getActivity(context,
0,
notificationIntent,
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
//Notify synchronization start
Intent startIntent = new Intent();

View File

@ -23,6 +23,11 @@
<li type="disc">Añadido módulo para localización en interiores</li>
</ul>-->
<h4>1.5.8 (2022-05-23)</h4>
<ul>
<li type="disc">Corregida descarga de notificaciones en Android 12 (S)</li>
</ul>
<h4>1.5.7 (2020-12-19)</h4>
<ul>
<li type="disc">Corregida descarga de archivos en Android R</li>

View File

@ -23,6 +23,11 @@
<li type="disc">Added indoor location module</li>
</ul>-->
<h4>1.5.8 (2022-05-23)</h4>
<ul>
<li type="disc">Fixed notifications downloads on Android 12 (S)</li>
</ul>
<h4>1.5.7 (2020-12-19)</h4>
<ul>
<li type="disc">Fixed file downloads on Android R</li>

View File

@ -5,7 +5,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
classpath 'com.android.tools.build:gradle:7.2.0'
classpath 'com.google.gms:google-services:4.3.10'
}
}

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists