Merge "Polished Scoped Directory Access UI." into nyc-dev
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:theme="@style/Theme.AppCompat.Light.Dialog.Alert"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingEnd="24dp"
|
android:paddingEnd="24dp"
|
||||||
android:paddingStart="24dp" >
|
android:paddingStart="24dp" >
|
||||||
@@ -28,18 +29,16 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingEnd="24dp"
|
android:paddingEnd="24dp"
|
||||||
android:paddingStart="24dp"
|
android:paddingStart="32dp"
|
||||||
android:paddingTop="24dp"
|
android:paddingTop="24dp">
|
||||||
android:textAppearance="@android:style/TextAppearance.Material.Subhead"
|
|
||||||
android:textColor="@*android:color/primary_text_default_material_light" >
|
|
||||||
</TextView>
|
</TextView>
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/do_not_ask_checkbox"
|
android:id="@+id/do_not_ask_checkbox"
|
||||||
style="?android:attr/textAppearanceSmall"
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dip"
|
android:layout_marginTop="16dip"
|
||||||
android:text="@string/never_ask_again"
|
android:text="@string/never_ask_again"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -46,8 +46,4 @@
|
|||||||
<item name="android:maxHeight">3dp</item>
|
<item name="android:maxHeight">3dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- TODO: use the proper dialog and/or inline if not overriding -->
|
|
||||||
<style name="AlertDialogTheme" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ public class OpenExternalDirectoryActivity extends Activity {
|
|||||||
final View view = View.inflate(mActivity, R.layout.dialog_open_scoped_directory, null);
|
final View view = View.inflate(mActivity, R.layout.dialog_open_scoped_directory, null);
|
||||||
final TextView messageField = (TextView) view.findViewById(R.id.message);
|
final TextView messageField = (TextView) view.findViewById(R.id.message);
|
||||||
messageField.setText(message);
|
messageField.setText(message);
|
||||||
mDialog = new AlertDialog.Builder(mActivity, R.style.AlertDialogTheme)
|
mDialog = new AlertDialog.Builder(mActivity, R.style.Theme_AppCompat_Light_Dialog_Alert)
|
||||||
.setView(view)
|
.setView(view)
|
||||||
.setPositiveButton(R.string.allow, listener)
|
.setPositiveButton(R.string.allow, listener)
|
||||||
.setNegativeButton(R.string.deny, listener)
|
.setNegativeButton(R.string.deny, listener)
|
||||||
|
|||||||
Reference in New Issue
Block a user