Skip to content

Commit

Permalink
Merge pull request #1533 from EmmanuelMess/fix-hacksavedstate
Browse files Browse the repository at this point in the history
Added Android P to NavigationView$SavedState hack
  • Loading branch information
EmmanuelMess committed Nov 30, 2018
1 parent b86cf2e commit 2c0d8e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android:
- platform-tools
- tools
- build-tools-27.0.3
- android-27
- android-28
- extra-google-m2repository

script: "./gradlew assembledebug"
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
compileSdkVersion 28
buildToolsVersion '27.0.3'

dexOptions {
Expand All @@ -23,7 +23,7 @@ android {
defaultConfig {
applicationId "com.amaze.filemanager"
minSdkVersion 14
targetSdkVersion 26
targetSdkVersion 28
versionCode 75
versionName "3.3.0"
multiDexEnabled true
Expand Down Expand Up @@ -183,7 +183,7 @@ dependencies {
implementation 'com.github.jahirfiquitiva:FABsMenu:1.1.3'//Floating Action Buttons Menu (aka expandable FAB)

//Simple library show
implementation('com.mikepenz:aboutlibraries:6.0.3@aar') {
implementation('com.mikepenz:aboutlibraries:6.1.1@aar') {
transitive = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void onRestoreInstanceState(Parcelable state) {
*/
public boolean isNavigationViewSavedStateMissing() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
&& Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1;
&& Build.VERSION.SDK_INT <= Build.VERSION_CODES.P;
}

static class SavedState extends BaseSavedState {
Expand Down

0 comments on commit 2c0d8e8

Please sign in to comment.