Merge "Fix redlines and strings in Controls dialog" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e34b132442
@@ -719,7 +719,7 @@
|
||||
android:finishOnCloseSystemDialogs="true"
|
||||
android:showForAllUsers="true"
|
||||
android:clearTaskOnLaunch="true"
|
||||
android:launchMode="singleTask"
|
||||
android:launchMode="singleInstance"
|
||||
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation|keyboard|keyboardHidden"
|
||||
android:excludeFromRecents="true"
|
||||
android:visibleToInstantApps="true"/>
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/controls_dialog_padding"
|
||||
android:layout_margin="@dimen/controls_dialog_padding"
|
||||
>
|
||||
|
||||
<include
|
||||
|
||||
@@ -1310,7 +1310,7 @@
|
||||
<dimen name="controls_card_margin">2dp</dimen>
|
||||
<item name="control_card_elevation" type="dimen" format="float">15</item>
|
||||
|
||||
<dimen name="controls_dialog_padding">8dp</dimen>
|
||||
<dimen name="controls_dialog_padding">32dp</dimen>
|
||||
<dimen name="controls_dialog_control_width">200dp</dimen>
|
||||
|
||||
<!-- Screen Record -->
|
||||
|
||||
@@ -2710,9 +2710,9 @@
|
||||
<!-- Controls dialog title [CHAR LIMIT=40] -->
|
||||
<string name="controls_dialog_title">Add to device controls</string>
|
||||
<!-- Controls dialog add to favorites [CHAR LIMIT=40] -->
|
||||
<string name="controls_dialog_ok">Add to favorites</string>
|
||||
<!-- Controls dialog message [CHAR LIMIT=NONE] -->
|
||||
<string name="controls_dialog_message"><xliff:g id="app" example="System UI">%s</xliff:g> suggested this control to add to your favorites.</string>
|
||||
<string name="controls_dialog_ok">Add</string>
|
||||
<!-- Controls dialog message. Indicates app that suggested this control [CHAR LIMIT=NONE] -->
|
||||
<string name="controls_dialog_message">Suggested by <xliff:g id="app" example="System UI">%s</xliff:g></string>
|
||||
<!-- Controls dialog confirmation [CHAR LIMIT=30] -->
|
||||
<string name="controls_dialog_confirmation">Controls updated</string>
|
||||
|
||||
|
||||
@@ -768,6 +768,10 @@
|
||||
<item name="android:textSize">16sp</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.ControlsRequestDialog" parent="@style/Theme.SystemUI.MediaProjectionAlertDialog"/>
|
||||
<!-- The attributes used for title (textAppearanceLarge) and message (textAppearanceMedium)
|
||||
are already as necessary:
|
||||
* Title: headline, medium 20sp
|
||||
* Message: body, 16 sp -->
|
||||
<style name="Theme.ControlsRequestDialog" parent="@*android:style/Theme.DeviceDefault.Dialog.Alert"/>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -70,6 +70,7 @@ class ControlsRequestReceiver : BroadcastReceiver() {
|
||||
ControlsProviderService.EXTRA_CONTROL.let {
|
||||
putExtra(it, intent.getParcelableExtra<Control>(it))
|
||||
}
|
||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_REORDER_TO_FRONT)
|
||||
}
|
||||
activityIntent.putExtra(Intent.EXTRA_USER_ID, context.userId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user