sm8150-common: DeviceSettings: HBMModeTileService: Fix HBM write value
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com> Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
This commit is contained in:
parent
0918c7cb71
commit
7566191266
|
@ -62,7 +62,7 @@ public class HBMModeTileService extends TileService {
|
|||
super.onClick();
|
||||
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
enabled = HBMModeSwitch.isCurrentlyEnabled(this);
|
||||
Utils.writeValue(HBMModeSwitch.getFile(), enabled ? "0" : "1");
|
||||
Utils.writeValue(HBMModeSwitch.getFile(), enabled ? "0" : "5");
|
||||
sharedPrefs.edit().putBoolean(DeviceSettings.KEY_HBM_SWITCH, enabled ? false : true).commit();
|
||||
//getQsTile().setLabel(enabled ? "HBM off" : "HBM On");
|
||||
getQsTile().setState(enabled ? Tile.STATE_INACTIVE : Tile.STATE_ACTIVE);
|
||||
|
|
Loading…
Reference in New Issue