diff --git a/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowser.java b/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowser.java index 70517a3..03e9cb4 100644 --- a/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowser.java +++ b/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowser.java @@ -185,7 +185,7 @@ public static void RequestPermission( Context context, final FileBrowserPermissi } final Fragment request = new FileBrowserPermissionFragment( permissionReceiver ); - ( (Activity) context ).getFragmentManager().beginTransaction().add( 0, request ).commit(); + ( (Activity) context ).getFragmentManager().beginTransaction().add( 0, request ).commitAllowingStateLoss(); } // Returns whether or not Storage Access Framework (SAF) should be used @@ -199,7 +199,7 @@ public static boolean CheckSAF() public static void PickSAFFolder( Context context, final FileBrowserDirectoryReceiver directoryReceiver ) { final Fragment request = new FileBrowserDirectoryPickerFragment( directoryReceiver ); - ( (Activity) context ).getFragmentManager().beginTransaction().add( 0, request ).commit(); + ( (Activity) context ).getFragmentManager().beginTransaction().add( 0, request ).commitAllowingStateLoss(); } // Retrieves the previously picked Storage Access Framework (SAF) folder uris diff --git a/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserDirectoryPickerFragment.java b/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserDirectoryPickerFragment.java index 38b093f..2feabe2 100644 --- a/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserDirectoryPickerFragment.java +++ b/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserDirectoryPickerFragment.java @@ -86,6 +86,6 @@ public void onActivityResult( int requestCode, int resultCode, Intent data ) if( directoryReceiver != null ) directoryReceiver.OnDirectoryPicked( rawUri, name ); - getFragmentManager().beginTransaction().remove( this ).commit(); + getFragmentManager().beginTransaction().remove( this ).commitAllowingStateLoss(); } } \ No newline at end of file diff --git a/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserPermissionFragment.java b/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserPermissionFragment.java index 20b2804..df98bae 100644 --- a/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserPermissionFragment.java +++ b/.github/AAR Source (Android)/java/com/yasirkula/unity/FileBrowserPermissionFragment.java @@ -74,7 +74,7 @@ public void onRequestPermissionsResult( int requestCode, String[] permissions, i { Log.e( "Unity", "Fragment data got reset while asking permissions!" ); - getFragmentManager().beginTransaction().remove( this ).commit(); + getFragmentManager().beginTransaction().remove( this ).commitAllowingStateLoss(); return; } @@ -102,7 +102,7 @@ public void onRequestPermissionsResult( int requestCode, String[] permissions, i } permissionReceiver.OnPermissionResult( result ); - getFragmentManager().beginTransaction().remove( this ).commit(); + getFragmentManager().beginTransaction().remove( this ).commitAllowingStateLoss(); // Resolves a bug in Unity 2019 where the calling activity // doesn't resume automatically after the fragment finishes diff --git a/Plugins/SimpleFileBrowser/Android/SimpleFileBrowser.aar b/Plugins/SimpleFileBrowser/Android/SimpleFileBrowser.aar index 56879c5..37e7408 100644 Binary files a/Plugins/SimpleFileBrowser/Android/SimpleFileBrowser.aar and b/Plugins/SimpleFileBrowser/Android/SimpleFileBrowser.aar differ diff --git a/Plugins/SimpleFileBrowser/README.txt b/Plugins/SimpleFileBrowser/README.txt index c55fc1c..6d16f0d 100644 --- a/Plugins/SimpleFileBrowser/README.txt +++ b/Plugins/SimpleFileBrowser/README.txt @@ -1,4 +1,4 @@ -= Simple File Browser (v1.6.3) = += Simple File Browser (v1.6.4) = Documentation: https://github.com/yasirkula/UnitySimpleFileBrowser FAQ: https://github.com/yasirkula/UnitySimpleFileBrowser#faq diff --git a/package.json b/package.json index 5d559af..d62a908 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.yasirkula.simplefilebrowser", "displayName": "Simple File Browser", - "version": "1.6.3", + "version": "1.6.4", "documentationUrl": "https://github.com/yasirkula/UnitySimpleFileBrowser", "changelogUrl": "https://github.com/yasirkula/UnitySimpleFileBrowser/releases", "licensesUrl": "https://github.com/yasirkula/UnitySimpleFileBrowser/blob/master/LICENSE.txt",