mirror of
https://github.com/suhan-paradkar/Instabar.git
synced 2023-08-02 15:02:12 +02:00
Fix compilation errors
This commit is contained in:
parent
27881365d1
commit
f7714b52e6
@ -38,13 +38,6 @@ public class GeneralPreferencesFragment extends BasePreferencesFragment implemen
|
||||
screen.addPreference(getUpdateCheckPreference(context));
|
||||
screen.addPreference(getFlagSecurePreference(context));
|
||||
screen.addPreference(getSearchFocusPreference(context));
|
||||
final List<Preference> preferences = FlavorSettings
|
||||
.getInstance()
|
||||
.getPreferences(
|
||||
context,
|
||||
getChildFragmentManager(),
|
||||
SettingCategory.GENERAL
|
||||
);
|
||||
for (final Preference preference : preferences) {
|
||||
screen.addPreference(preference);
|
||||
}
|
||||
|
@ -14,13 +14,11 @@ import java.util.regex.Pattern;
|
||||
|
||||
import awais.instagrabber.BuildConfig;
|
||||
import awais.instagrabber.R;
|
||||
import awaisomereport.CrashReporterHelper;
|
||||
|
||||
import static awais.instagrabber.utils.Utils.settingsHelper;
|
||||
|
||||
public final class FlavorTown {
|
||||
private static final String TAG = "FlavorTown";
|
||||
private static final UpdateChecker UPDATE_CHECKER = UpdateChecker.getInstance();
|
||||
private static final Pattern VERSION_NAME_PATTERN = Pattern.compile("v?(\\d+\\.\\d+\\.\\d+)(?:_?)(\\w*)(?:-?)(\\w*)");
|
||||
|
||||
private static boolean checking = false;
|
||||
@ -86,8 +84,7 @@ public final class FlavorTown {
|
||||
settingsHelper.putString(Constants.APP_UA, appUa);
|
||||
final String browserUa = UserAgentUtils.generateBrowserUA(browserUaCode);
|
||||
settingsHelper.putString(Constants.BROWSER_UA, browserUa);
|
||||
AppExecutors.INSTANCE.getDiskIO().execute(() -> CrashReporterHelper.deleteAllStacktraceFiles(context));
|
||||
Toast.makeText(context, R.string.updated, Toast.LENGTH_SHORT).show();
|
||||
settingsHelper.putInteger(Constants.PREV_INSTALL_VERSION, BuildConfig.VERSION_CODE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user