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:
@@ -31,10 +31,10 @@ import androidx.preference.PreferenceGroup;
|
||||
import androidx.preference.PreferenceGroupAdapter;
|
||||
import androidx.preference.PreferenceViewHolder;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.window.embedding.SplitController;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.activityembedding.ActivityEmbeddingUtils;
|
||||
import com.android.settings.homepage.SettingsHomepageActivity;
|
||||
|
||||
/**
|
||||
@@ -255,6 +255,6 @@ public class HighlightableTopLevelPreferenceAdapter extends PreferenceGroupAdapt
|
||||
}
|
||||
|
||||
private boolean isHighlightNeeded() {
|
||||
return ActivityEmbeddingUtils.isTwoPaneResolution(mHomepageActivity);
|
||||
return SplitController.getInstance().isActivityEmbedded(mHomepageActivity);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user