Quellcode durchsuchen

OC-2461: Fix bug: After insert the pincode, if the device is rotate the pincode is asked again

masensio vor 11 Jahren
Ursprung
Commit
5bab662e90
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/com/owncloud/android/ui/activity/FileDisplayActivity.java

+ 1 - 1
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -162,7 +162,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
         // PIN CODE request ;  best location is to decide, let's try this first
         if (getIntent().getAction() != null && getIntent().getAction().equals(Intent.ACTION_MAIN) && savedInstanceState == null) {
             requestPinCode();
-        } else if (getIntent().getAction() == null) {
+        } else if (getIntent().getAction() == null && savedInstanceState == null) {
             requestPinCode();
         }