Merge "Fix select dir button enabled after rotation." into rvc-dev
diff --git a/src/com/android/documentsui/picker/PickFragment.java b/src/com/android/documentsui/picker/PickFragment.java
index f7b98e3..bd25f00 100644
--- a/src/com/android/documentsui/picker/PickFragment.java
+++ b/src/com/android/documentsui/picker/PickFragment.java
@@ -51,6 +51,7 @@
     private static final String ACTION_KEY = "action";
     private static final String COPY_OPERATION_SUBTYPE_KEY = "copyOperationSubType";
     private static final String PICK_TARGET_KEY = "pickTarget";
+    private static final String RESTRICT_SCOPE_STORAGE_KEY = "restrictScopeStorage";
 
     private final View.OnClickListener mPickListener = new View.OnClickListener() {
         @Override
@@ -120,6 +121,7 @@
             mCopyOperationSubType =
                     savedInstanceState.getInt(COPY_OPERATION_SUBTYPE_KEY);
             mPickTarget = savedInstanceState.getParcelable(PICK_TARGET_KEY);
+            mRestrictScopeStorage = savedInstanceState.getBoolean(RESTRICT_SCOPE_STORAGE_KEY);
             updateView();
         }
 
@@ -132,6 +134,7 @@
         outState.putInt(ACTION_KEY, mAction);
         outState.putInt(COPY_OPERATION_SUBTYPE_KEY, mCopyOperationSubType);
         outState.putParcelable(PICK_TARGET_KEY, mPickTarget);
+        outState.putBoolean(RESTRICT_SCOPE_STORAGE_KEY, mRestrictScopeStorage);
     }
 
     /**