Add partition list GUI element
Add partition list GUI element and update backup, restore, mount, storage selection, and wipe sections of GUI and partition manager code to reflect the new GUI element. Update ORS engine to handle new backup and restore setup. Fix a bug with decrypt. Add 1080x1920 layout. Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
This commit is contained in:
+11
-1
@@ -109,7 +109,17 @@ int blanktimer::getBrightness(void) {
|
||||
string brightness_path = EXPAND(TW_BRIGHTNESS_PATH);
|
||||
if ((TWFunc::read_file(brightness_path, results)) != 0)
|
||||
return -1;
|
||||
return atoi(results.c_str());
|
||||
int result = atoi(results.c_str());
|
||||
if (result == 0) {
|
||||
int tw_brightness;
|
||||
DataManager::GetValue("tw_brightness", tw_brightness);
|
||||
if (tw_brightness) {
|
||||
result = tw_brightness;
|
||||
} else {
|
||||
result = 255;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user