Snap for 9997652 from 5ae083b952
to udc-release
Change-Id: I221dbd32a94af73b1904801d974afc69bfe44107
This commit is contained in:
@@ -3835,7 +3835,7 @@
|
||||
android:documentLaunchMode="always"
|
||||
android:exported="true"
|
||||
android:permission="android.permission.CHANGE_WIFI_STATE"
|
||||
android:configChanges="orientation|keyboardHidden|screenSize">
|
||||
android:configChanges="orientation|keyboard|keyboardHidden|screenSize|smallestScreenSize|screenLayout">
|
||||
<intent-filter>
|
||||
<action android:name="com.android.settings.WIFI_DIALOG" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
@@ -5291,7 +5291,7 @@
|
||||
<string name="battery_missing_link_a11y_message">Tap to learn more about this error</string>
|
||||
|
||||
<!-- Label for power consumed by the screen -->
|
||||
<string name="power_screen">Display</string>
|
||||
<string name="power_screen">Screen</string>
|
||||
<!-- Label for power consumed by the CPU -->
|
||||
<string name="power_cpu">CPU</string>
|
||||
<!-- Label for power consumed by the flashlight -->
|
||||
|
@@ -24,7 +24,7 @@ import android.provider.Settings;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.TogglePreferenceController;
|
||||
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
|
||||
/**
|
||||
* Controller for Camera flash notification.
|
||||
@@ -49,6 +49,8 @@ public class CameraFlashNotificationPreferenceController extends TogglePreferenc
|
||||
|
||||
@Override
|
||||
public boolean setChecked(boolean isChecked) {
|
||||
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider().changed(
|
||||
getMetricsCategory(), getPreferenceKey(), isChecked ? 1 : 0);
|
||||
return Settings.System.putInt(mContext.getContentResolver(),
|
||||
Settings.System.CAMERA_FLASH_NOTIFICATION, (isChecked ? ON : OFF));
|
||||
}
|
||||
|
@@ -30,6 +30,7 @@ import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.TogglePreferenceController;
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@@ -62,8 +63,11 @@ public class ScreenFlashNotificationPreferenceController extends TogglePreferenc
|
||||
|
||||
@Override
|
||||
public boolean setChecked(boolean isChecked) {
|
||||
if (isChecked) checkAndSetInitialColor();
|
||||
|
||||
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider().changed(
|
||||
getMetricsCategory(), getPreferenceKey(), isChecked ? 1 : 0);
|
||||
if (isChecked) {
|
||||
checkAndSetInitialColor();
|
||||
}
|
||||
return Settings.System.putInt(mContext.getContentResolver(),
|
||||
Settings.System.SCREEN_FLASH_NOTIFICATION, (isChecked ? ON : OFF));
|
||||
}
|
||||
|
Reference in New Issue
Block a user