Send pre-index intent when developer options changed
Bug: 244521263 Test: manually test and review UI Change-Id: I410dcc8ac8a9e131357a3e186e17b0d6363ad247
This commit is contained in:
@@ -60,6 +60,7 @@ import com.android.settings.development.bluetooth.BluetoothQualityDialogPreferen
|
|||||||
import com.android.settings.development.bluetooth.BluetoothSampleRateDialogPreferenceController;
|
import com.android.settings.development.bluetooth.BluetoothSampleRateDialogPreferenceController;
|
||||||
import com.android.settings.development.qstile.DevelopmentTiles;
|
import com.android.settings.development.qstile.DevelopmentTiles;
|
||||||
import com.android.settings.development.storage.SharedDataPreferenceController;
|
import com.android.settings.development.storage.SharedDataPreferenceController;
|
||||||
|
import com.android.settings.overlay.FeatureFactory;
|
||||||
import com.android.settings.search.BaseSearchIndexProvider;
|
import com.android.settings.search.BaseSearchIndexProvider;
|
||||||
import com.android.settings.search.actionbar.SearchMenuController;
|
import com.android.settings.search.actionbar.SearchMenuController;
|
||||||
import com.android.settings.widget.SettingsMainSwitchBar;
|
import com.android.settings.widget.SettingsMainSwitchBar;
|
||||||
@@ -318,6 +319,8 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
|||||||
DisableDevSettingsDialogFragment.show(this /* host */);
|
DisableDevSettingsDialogFragment.show(this /* host */);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
FeatureFactory.getFactory(
|
||||||
|
getContext()).getSearchFeatureProvider().sendPreIndexIntent(getContext());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -379,12 +382,12 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
|||||||
|
|
||||||
final BluetoothLeAudioHwOffloadPreferenceController leAudioController =
|
final BluetoothLeAudioHwOffloadPreferenceController leAudioController =
|
||||||
getDevelopmentOptionsController(
|
getDevelopmentOptionsController(
|
||||||
BluetoothLeAudioHwOffloadPreferenceController.class);
|
BluetoothLeAudioHwOffloadPreferenceController.class);
|
||||||
leAudioController.onRebootDialogConfirmed();
|
leAudioController.onRebootDialogConfirmed();
|
||||||
|
|
||||||
final BluetoothLeAudioPreferenceController leAudioFeatureController =
|
final BluetoothLeAudioPreferenceController leAudioFeatureController =
|
||||||
getDevelopmentOptionsController(
|
getDevelopmentOptionsController(
|
||||||
BluetoothLeAudioPreferenceController.class);
|
BluetoothLeAudioPreferenceController.class);
|
||||||
leAudioFeatureController.onRebootDialogConfirmed();
|
leAudioFeatureController.onRebootDialogConfirmed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -396,12 +399,12 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
|||||||
|
|
||||||
final BluetoothLeAudioHwOffloadPreferenceController leAudioController =
|
final BluetoothLeAudioHwOffloadPreferenceController leAudioController =
|
||||||
getDevelopmentOptionsController(
|
getDevelopmentOptionsController(
|
||||||
BluetoothLeAudioHwOffloadPreferenceController.class);
|
BluetoothLeAudioHwOffloadPreferenceController.class);
|
||||||
leAudioController.onRebootDialogCanceled();
|
leAudioController.onRebootDialogCanceled();
|
||||||
|
|
||||||
final BluetoothLeAudioPreferenceController leAudioFeatureController =
|
final BluetoothLeAudioPreferenceController leAudioFeatureController =
|
||||||
getDevelopmentOptionsController(
|
getDevelopmentOptionsController(
|
||||||
BluetoothLeAudioPreferenceController.class);
|
BluetoothLeAudioPreferenceController.class);
|
||||||
leAudioFeatureController.onRebootDialogCanceled();
|
leAudioFeatureController.onRebootDialogCanceled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -240,6 +240,8 @@ public class BuildNumberPreferenceController extends BasePreferenceController im
|
|||||||
mDevHitToast = Toast.makeText(mContext, R.string.show_dev_on,
|
mDevHitToast = Toast.makeText(mContext, R.string.show_dev_on,
|
||||||
Toast.LENGTH_LONG);
|
Toast.LENGTH_LONG);
|
||||||
mDevHitToast.show();
|
mDevHitToast.show();
|
||||||
|
|
||||||
|
FeatureFactory.getFactory(mContext).getSearchFeatureProvider().sendPreIndexIntent(mContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
Reference in New Issue
Block a user