mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 11:09:49 +08:00
TermuxPreferences: get rid of unnecessary switch()'es
This commit is contained in:
@@ -210,23 +210,8 @@ final class TermuxPreferences {
|
||||
mUseDarkUI = nightMode == Configuration.UI_MODE_NIGHT_YES;
|
||||
}
|
||||
|
||||
switch (props.getProperty("fullscreen", "").toLowerCase()) {
|
||||
case "true":
|
||||
mUseFullScreen = true;
|
||||
break;
|
||||
case "false":
|
||||
default:
|
||||
mUseFullScreen = false;
|
||||
}
|
||||
|
||||
switch (props.getProperty("use-fullscreen-workaround", "").toLowerCase()) {
|
||||
case "true":
|
||||
mUseFullScreenWorkAround = true;
|
||||
break;
|
||||
case "false":
|
||||
default:
|
||||
mUseFullScreenWorkAround = false;
|
||||
}
|
||||
mUseFullScreen = "true".equals(props.getProperty("fullscreen", "false").toLowerCase());
|
||||
mUseFullScreenWorkAround = "true".equals(props.getProperty("use-fullscreen-workaround", "false").toLowerCase());
|
||||
|
||||
mDefaultWorkingDir = props.getProperty("default-working-directory", TermuxService.HOME_PATH);
|
||||
File workDir = new File(mDefaultWorkingDir);
|
||||
|
Reference in New Issue
Block a user