Update new API for checking the embedding status
Test: Make sure behavior is correct as it was in search flow, higlight flow, regular settings flow, split screen flow. Bug: 204399167 Change-Id: I7fc29c8cdbfc6682963591f4ff805070bea4ca22
This commit is contained in:
@@ -33,6 +33,7 @@ import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.window.embedding.SplitController;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.Utils;
|
||||
@@ -144,7 +145,7 @@ public class TopLevelSettings extends DashboardFragment implements
|
||||
if (mFirstStarted) {
|
||||
mFirstStarted = false;
|
||||
} else if (mIsEmbeddingActivityEnabled && isOnlyOneActivityInTask()
|
||||
&& !ActivityEmbeddingUtils.isTwoPaneResolution(getActivity())) {
|
||||
&& !SplitController.getInstance().isActivityEmbedded(getActivity())) {
|
||||
// Set default highlight menu key for 1-pane homepage since it will show the placeholder
|
||||
// page once changing back to 2-pane.
|
||||
Log.i(TAG, "Set default menu key");
|
||||
|
Reference in New Issue
Block a user