Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d441d7d2 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Update split instructions text for contextual

Test: Visually saw different string for contextual
Bug: 322117067
Flag: aconfig com.android.wm.shell.enable_split_contextual
Change-Id: I92b09bc47d29ba5dd83d09f78aaf8d67e855dd36
parent 5a1c8862
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@
    <string name="action_split">Split</string>
    <!-- Label for toast with instructions for split screen selection mode. [CHAR_LIMIT=50] -->
    <string name="toast_split_select_app">Tap another app to use split screen</string>
    <string name="toast_contextual_split_select_app">Choose another app to use split screen</string>
    <string name="toast_split_select_app_cancel"><b>Cancel</b></string>
    <string name="toast_split_select_cont_desc">Exit split screen selection</string>
    <!-- Label for toast when app selected for split isn't supported. [CHAR_LIMIT=50] -->
+2 −0
Original line number Diff line number Diff line
@@ -120,10 +120,12 @@ public class SplitInstructionsView extends LinearLayout {

    private void init() {
        TextView cancelTextView = findViewById(R.id.split_instructions_text_cancel);
        TextView instructionTextView = findViewById(R.id.split_instructions_text);

        if (FeatureFlags.enableSplitContextually()) {
            cancelTextView.setVisibility(VISIBLE);
            cancelTextView.setOnClickListener((v) -> exitSplitSelection());
            instructionTextView.setText(R.string.toast_contextual_split_select_app);
        }
    }