Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Fixed #388. Fixed notifications downloads on Android 12 (S) (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amab authored May 23, 2022
1 parent 804bbc0 commit fb28b3e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 16 deletions.
12 changes: 3 additions & 9 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 3 additions & 3 deletions SWADroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -57,7 +57,7 @@ android {
versionCode androidGitVersion.code()

minSdkVersion 24
targetSdkVersion 31
targetSdkVersion 32

testApplicationId "es.ugr.swad.swadroid.test"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ protected void postConnect() {
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ private static void performSync(Context context)
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();
Expand Down
5 changes: 5 additions & 0 deletions SWADroid/src/main/res/raw-es/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 5 additions & 0 deletions SWADroid/src/main/res/raw/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ <h4>1.6.0 (upcoming)</h4>
<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>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fb28b3e

Please sign in to comment.