Bugfixes
HOLOYOLO Praise Matias!!! - fixed a problem with the wide viewport preference not being saved correctly... also added a sort of easter egg.
This commit is contained in:
parent
8f99ae41da
commit
3df9b852fa
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="acr.browser.barebones"
|
||||
android:versionCode="45"
|
||||
android:versionName="2.5.0.4" >
|
||||
android:versionCode="46"
|
||||
android:versionName="2.5.0.5" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="8"
|
||||
|
@ -36,8 +36,6 @@ import android.widget.Toast;
|
||||
public class AdvancedSettingsActivity extends Activity {
|
||||
|
||||
// settings variables
|
||||
static boolean savePasswords, clearCache, enableJavaScript,
|
||||
enableTextReflow, blockImages, newWindow, incognitoAlways;
|
||||
static int defaultZoom, textSize;
|
||||
static final int API = FinalVariables.API;
|
||||
static final String preferences = "settings";
|
||||
|
@ -497,7 +497,7 @@ public class BarebonesActivity extends Activity {
|
||||
if (url.startsWith("file:///")) {
|
||||
view.getSettings().setUseWideViewPort(false);
|
||||
} else {
|
||||
view.getSettings().setUseWideViewPort(true);
|
||||
view.getSettings().setUseWideViewPort(settings.getBoolean("wideviewport", true));
|
||||
}
|
||||
|
||||
if (view.isShown()) {
|
||||
|
@ -494,7 +494,7 @@ public class IncognitoModeActivity extends Activity {
|
||||
if (url.startsWith("file:///")) {
|
||||
view.getSettings().setUseWideViewPort(false);
|
||||
} else {
|
||||
view.getSettings().setUseWideViewPort(true);
|
||||
view.getSettings().setUseWideViewPort(settings.getBoolean("wideviewport", true));
|
||||
}
|
||||
|
||||
if (view.isShown()) {
|
||||
|
@ -105,12 +105,12 @@ public class SettingsActivity extends Activity {
|
||||
|
||||
download.setText(downloadLocation);
|
||||
|
||||
int code = 0;
|
||||
String code = "HOLO";
|
||||
|
||||
try {
|
||||
PackageInfo p = getPackageManager().getPackageInfo(
|
||||
getPackageName(), 0);
|
||||
code = p.versionCode;
|
||||
code = p.versionName;
|
||||
} catch (NameNotFoundException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
@ -323,15 +323,12 @@ public class SettingsActivity extends Activity {
|
||||
public void onClick(View v) {
|
||||
egg++;
|
||||
if (egg == 10) {
|
||||
Toast.makeText(SettingsActivity.this, "Almost There",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
if (egg == 15) {
|
||||
Toast.makeText(SettingsActivity.this,
|
||||
"Easter Egg goes here", Toast.LENGTH_SHORT).show();
|
||||
startActivity(new Intent(
|
||||
Intent.ACTION_VIEW,
|
||||
Uri.parse("http://imgs.xkcd.com/comics/compiling.png")));
|
||||
finish();
|
||||
egg = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user