mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
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
This commit is contained in:
@@ -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] -->
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user