Merge "[Large sceen] Don't go Settings 2-pane deep link flow if not task root" into sc-v2-dev
This commit is contained in:
@@ -370,8 +370,9 @@ public class SettingsActivity extends SettingsBaseActivity
|
||||
final SplitStateObserver splitStateObserver = new SplitStateObserver(this /* activity*/,
|
||||
true /* listenOnce */,
|
||||
splitInfos -> {
|
||||
if (!splitInfos.isEmpty()) {
|
||||
// It's already in 2-pane and no need to go 2-pane deep link flow.
|
||||
if (!splitInfos.isEmpty() || !SettingsActivity.this.isTaskRoot()) {
|
||||
// It's already in 2-pane or in a non-empty task, there is no need to go
|
||||
// 2-pane deep link flow.
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user