Add missing 'private' and 'public' access' modifiers, fix warnings
This commit is contained in:
parent
e0ae78cfcd
commit
d47d03b7af
@ -5,24 +5,24 @@ package acr.browser.lightning;
|
|||||||
|
|
||||||
public class SettingsController {
|
public class SettingsController {
|
||||||
|
|
||||||
static boolean clearHistory = false;
|
private static boolean clearHistory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The purpose of this class is so that I can clear the dropdown history in the main activities if the user selects
|
* The purpose of this class is so that I can clear the dropdown history in the main activities if the user selects
|
||||||
* to clear the history from the disk in advanced settings
|
* to clear the history from the disk in advanced settings
|
||||||
*/
|
*/
|
||||||
static void setClearHistory(boolean choice) {
|
public static void setClearHistory(boolean choice) {
|
||||||
clearHistory = choice;
|
clearHistory = choice;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* return the choice
|
* return the choice
|
||||||
*/
|
*/
|
||||||
static boolean getClearHistory() {
|
public static boolean getClearHistory() {
|
||||||
if (clearHistory) {
|
if (clearHistory) {
|
||||||
clearHistory = false;
|
clearHistory = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return clearHistory;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user