You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
614 B
31 lines
614 B
/* |
|
* Copyright 2014 A.C.R. Development |
|
*/ |
|
package acr.browser.lightning; |
|
|
|
public class SettingsController { |
|
static boolean clearHistory = false; |
|
|
|
/** |
|
* 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 |
|
* @param choice |
|
*/ |
|
static void setClearHistory(boolean choice) { |
|
clearHistory = choice; |
|
} |
|
|
|
/** |
|
* return the choice |
|
* @return |
|
*/ |
|
static boolean getClearHistory() { |
|
if (clearHistory) { |
|
clearHistory = false; |
|
return true; |
|
} |
|
return clearHistory; |
|
} |
|
}
|
|
|