mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Fix orientation change
This commit is contained in:
1 parent
fcb0d45d39
commit
7d10c43822
2 files changed
+4
-3
No files matched your search
@@ -88,8 +88,8 @@ public class ProgressTaskDialogFragment extends DialogFragment implements Progre
|
||||
|
||||
@Override
|
||||
public void onDismiss(DialogInterface dialog) {
|
||||
super.onDismiss(dialog);
|
||||
Util.unlockScreenOrientation(getActivity());
|
||||
super.onDismiss(dialog);
|
||||
}
|
||||
|
||||
public static void stop(AppCompatActivity activity) {
|
||||
|
||||
@@ -86,7 +86,8 @@ public class Util {
|
||||
}
|
||||
|
||||
public static void unlockScreenOrientation(Activity activity) {
|
||||
if (activity != null)
|
||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
|
||||
if (activity != null) {
|
||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user