Avoid crashing during orientation changes.

We ideally should rewrite these activities to use DialogFragment so
that they can correctly save and restore their instance state across
all configuration changes, but since we're running low on time, this
change says we'll handle our own configuration changes.  (This is
safe because our resources don't vary based on rotation.)

Bug: 155850990
Test: manual
Change-Id: Ic7337da318858c9f1b792604a4d1b8140d9e8c8d
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index ff7299c..982b940 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -102,12 +102,14 @@
 
         <activity
                 android:name="com.android.providers.media.PermissionActivity"
+                android:configChanges="orientation|keyboardHidden|screenSize"
                 android:theme="@style/PickerDialogTheme"
                 android:exported="false"
                 android:excludeFromRecents="true" />
 
         <activity
                 android:name="com.android.providers.media.CacheClearingActivity"
+                android:configChanges="orientation|keyboardHidden|screenSize"
                 android:exported="true"
                 android:theme="@style/CacheClearingAlertDialogTheme"
                 android:finishOnCloseSystemDialogs="true"