Clean up AwareFeatureProvider from Settings
Bug: 287566056 Test: m Settings Change-Id: I7f7f57809c55bf8824b427f0d4a232cacdbe88a7
This commit is contained in:
@@ -20,14 +20,12 @@ import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.provider.SearchIndexableResource;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceGroup;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
@@ -39,8 +37,6 @@ public class SystemDashboardFragment extends DashboardFragment {
|
||||
|
||||
private static final String TAG = "SystemDashboardFrag";
|
||||
|
||||
public static final String EXTRA_SHOW_AWARE_DISABLED = "show_aware_dialog_disabled";
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
@@ -50,17 +46,6 @@ public class SystemDashboardFragment extends DashboardFragment {
|
||||
if (getVisiblePreferenceCount(screen) == screen.getInitialExpandedChildrenCount() + 1) {
|
||||
screen.setInitialExpandedChildrenCount(Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
showRestrictionDialog();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public void showRestrictionDialog() {
|
||||
final Bundle args = getArguments();
|
||||
if (args != null && args.getBoolean(EXTRA_SHOW_AWARE_DISABLED, false)) {
|
||||
FeatureFactory.getFactory(getContext()).getAwareFeatureProvider()
|
||||
.showRestrictionDialog(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user