[Large screen] Open the search page in full-screen mode
Bug: 205079744 Test: manual Change-Id: I3ac663b42fc0538dcb20d53f456b90ea68c9093d
This commit is contained in:
@@ -20,9 +20,11 @@ import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.text.TextUtils;
|
||||
import android.util.FeatureFlagUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.settings.SettingsApplication;
|
||||
import com.android.settings.core.FeatureFlags;
|
||||
import com.android.settings.homepage.SettingsHomepageActivity;
|
||||
|
||||
/**
|
||||
@@ -36,6 +38,11 @@ public class SearchStateReceiver extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (FeatureFlagUtils.isEnabled(context, FeatureFlags.SETTINGS_SEARCH_ALWAYS_EXPAND)) {
|
||||
// Not needed to show/hide the highlight when search is full screen
|
||||
return;
|
||||
}
|
||||
|
||||
if (intent == null) {
|
||||
Log.w(TAG, "Null intent");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user