Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Fix executing pending transactions for v0.11 #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ext {
publishedGroupId = 'com.tbruyelle.rxpermissions2'
artifact = 'rxpermissions'
libraryName = 'RxPermissions'
libraryVersion = '0.9.5'
libraryVersion = '0.9.6'

libraryDescription = 'A wrapper for Android 6.0 permissions'

Expand Down
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ private RxPermissionsFragment getRxPermissionsFragment(@NonNull final FragmentMa
fragmentManager
.beginTransaction()
.add(rxPermissionsFragment, TAG)
.commitNow();
.commit();
try {
fragmentManager.executePendingTransactions();
} catch (Throwable throwable) {
throwable.printStackTrace();
}
}
return rxPermissionsFragment;
}
Expand Down
5 changes: 5 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
applicationId "com.tbruyelle.rxpermissions.sample"
minSdkVersion 14
Expand Down