[Output Switcher] Upadte text string

update text string for stop button from "Stop" to "Stop casting"

Test: verified on device
Bug: 216193358
Change-Id: Id3511f055f31532b85299dd6f398118d808cc0f0
(cherry picked from commit cacf8d0ba1)
Merged-In: Id3511f055f31532b85299dd6f398118d808cc0f0
This commit is contained in:
shaoweishen
2022-01-27 09:53:29 +00:00
parent b7cca6b1ff
commit ee66a6d0d2
3 changed files with 4 additions and 4 deletions

View File

@@ -129,7 +129,7 @@
style="@style/Widget.Dialog.Button.BorderButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/keyboard_key_media_stop"
android:text="@string/media_output_dialog_button_stop_casting"
android:visibility="gone"/>
<Space

View File

@@ -2223,6 +2223,8 @@
<string name="media_output_dialog_launch_app_text">To cast this session, please open the app.</string>
<!-- App name when can't get app name [CHAR LIMIT=60] -->
<string name="media_output_dialog_unknown_launch_app_name">Unknown app</string>
<!-- Button text for stopping casting [CHAR LIMIT=60] -->
<string name="media_output_dialog_button_stop_casting">Stop casting</string>
<!-- Label for clip data when copying the build number off QS [CHAR LIMIT=NONE]-->

View File

@@ -211,10 +211,8 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
ColorFilter buttonColorFilter = new PorterDuffColorFilter(
mAdapter.getController().getColorButtonBackground(),
PorterDuff.Mode.SRC_IN);
ColorFilter onlineButtonColorFilter = new PorterDuffColorFilter(
mAdapter.getController().getColorInactiveItem(), PorterDuff.Mode.SRC_IN);
mDoneButton.getBackground().setColorFilter(buttonColorFilter);
mStopButton.getBackground().setColorFilter(onlineButtonColorFilter);
mStopButton.getBackground().setColorFilter(buttonColorFilter);
}
mHeaderIcon.setVisibility(View.VISIBLE);
mHeaderIcon.setImageIcon(icon);