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*/,
|
final SplitStateObserver splitStateObserver = new SplitStateObserver(this /* activity*/,
|
||||||
true /* listenOnce */,
|
true /* listenOnce */,
|
||||||
splitInfos -> {
|
splitInfos -> {
|
||||||
if (!splitInfos.isEmpty()) {
|
if (!splitInfos.isEmpty() || !SettingsActivity.this.isTaskRoot()) {
|
||||||
// It's already in 2-pane and no need to go 2-pane deep link flow.
|
// It's already in 2-pane or in a non-empty task, there is no need to go
|
||||||
|
// 2-pane deep link flow.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user