Remove silky flag from System for official release
Remove the silky condition and clean up redundant files. Bug: 183670633 Test: robotests & visual Change-Id: I2743a65869c4fe2ea684e259373ddc309dea59c3
This commit is contained in:
@@ -16,19 +16,13 @@
|
||||
|
||||
package com.android.settings.gestures;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.hardware.display.AmbientDisplayConfiguration;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.util.FeatureFlagUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.aware.AwareFeatureProvider;
|
||||
import com.android.settings.core.BasePreferenceController;
|
||||
import com.android.settings.core.FeatureFlags;
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
import com.android.settingslib.core.AbstractPreferenceController;
|
||||
|
||||
@@ -85,37 +79,4 @@ public class GesturesSettingPreferenceController extends BasePreferenceControlle
|
||||
controllers.add(new PreventRingingParentPreferenceController(context, FAKE_PREF_KEY));
|
||||
return controllers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
if (FeatureFlagUtils.isEnabled(mContext, FeatureFlags.SILKY_HOME)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!mFeatureProvider.isSensorAvailable(mContext)) {
|
||||
return "";
|
||||
}
|
||||
final ContentResolver contentResolver = mContext.getContentResolver();
|
||||
final boolean assistGestureEnabled = Settings.Secure.getInt(
|
||||
contentResolver, Settings.Secure.ASSIST_GESTURE_ENABLED, 1) != 0;
|
||||
final boolean assistGestureSilenceEnabled = Settings.Secure.getInt(
|
||||
contentResolver, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 1) != 0;
|
||||
final boolean sensorSupported = mFeatureProvider.isSupported(mContext);
|
||||
|
||||
final CharSequence awareSummary = mAwareFeatureProvider.getGestureSummary(mContext,
|
||||
sensorSupported, assistGestureEnabled, assistGestureSilenceEnabled);
|
||||
if (!TextUtils.isEmpty(awareSummary)) {
|
||||
return awareSummary;
|
||||
}
|
||||
|
||||
if (sensorSupported && assistGestureEnabled) {
|
||||
return mContext.getText(
|
||||
R.string.language_input_gesture_summary_on_with_assist);
|
||||
}
|
||||
if (assistGestureSilenceEnabled) {
|
||||
return mContext.getText(
|
||||
R.string.language_input_gesture_summary_on_non_assist);
|
||||
}
|
||||
return mContext.getText(R.string.language_input_gesture_summary_off);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user