Fix some issues of the permission dialog
- Change the visibility of the ImageView first. To avoid the size
changed after the decoding is finished.
- Set the default gray color in ImageView to ease the transition.
- Disable all buttons after the user clicks the positive button.
- Set true to windowNoTitle to hide the activity title.
Bug: 151083848
Bug: 151734029
Test: manual with MediaProviderDialogsTool
Change-Id: I8dd7d260ad59132e06c8b2140abf3be4039b90ac
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..28f31ee
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2020 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <color name="thumb_gray_color">#1f000000</color>
+</resources>