Anthony Restaino
9 years ago
43 changed files with 391 additions and 367 deletions
@ -1,4 +1,7 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<project version="4"> |
<project version="4"> |
||||||
|
<component name="EntryPointsManager"> |
||||||
|
<entry_points version="2.0" /> |
||||||
|
</component> |
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK" /> |
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK" /> |
||||||
</project> |
</project> |
@ -1,219 +1,221 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<!-- Copyright 2014 A.C.R. Development --> |
<!-- Copyright 2014 A.C.R. Development --> |
||||||
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
package="acr.browser.lightning" |
package="acr.browser.lightning" |
||||||
android:versionCode="77" |
android:versionCode="77" |
||||||
android:versionName="4.0.9a" > |
android:versionName="4.0.9a" > |
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" /> |
<uses-permission android:name="android.permission.INTERNET" /> |
||||||
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" /> |
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" /> |
||||||
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" /> |
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" /> |
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
||||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
||||||
|
|
||||||
<uses-feature |
<uses-feature |
||||||
android:name="android.hardware.location.gps" |
android:name="android.hardware.location.gps" |
||||||
android:required="false" /> |
android:required="false" /> |
||||||
<uses-feature |
<uses-feature |
||||||
android:name="android.hardware.location" |
android:name="android.hardware.location" |
||||||
android:required="false" /> |
android:required="false" /> |
||||||
<uses-feature |
<uses-feature |
||||||
android:name="android.hardware.touchscreen" |
android:name="android.hardware.touchscreen" |
||||||
android:required="false" /> |
android:required="false" /> |
||||||
|
|
||||||
<uses-sdk |
<uses-sdk |
||||||
android:minSdkVersion="14" |
android:minSdkVersion="14" |
||||||
android:targetSdkVersion="22" /> |
android:targetSdkVersion="22" /> |
||||||
|
|
||||||
<application |
<application |
||||||
android:name="acr.browser.lightning.BrowserApp" |
android:name=".activity.BrowserApp" |
||||||
android:allowBackup="true" |
android:allowBackup="true" |
||||||
android:hardwareAccelerated="true" |
android:hardwareAccelerated="true" |
||||||
android:icon="@mipmap/ic_launcher" |
android:icon="@mipmap/ic_launcher" |
||||||
android:label="@string/app_name" > |
android:label="@string/app_name" > |
||||||
<activity |
<activity |
||||||
android:name="acr.browser.lightning.MainActivity" |
android:name=".activity.MainActivity" |
||||||
android:alwaysRetainTaskState="true" |
android:alwaysRetainTaskState="true" |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
android:label="@string/app_name" |
android:label="@string/app_name" |
||||||
android:launchMode="singleTask" |
android:launchMode="singleTask" |
||||||
android:theme="@style/Theme.LightTheme" > |
android:theme="@style/Theme.LightTheme" > |
||||||
<intent-filter> |
<intent-filter> |
||||||
<action android:name="android.intent.action.MAIN" /> |
<action android:name="android.intent.action.MAIN" /> |
||||||
|
|
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<category android:name="android.intent.category.LAUNCHER" /> |
<category android:name="android.intent.category.LAUNCHER" /> |
||||||
<category android:name="android.intent.category.BROWSABLE" /> |
<category android:name="android.intent.category.BROWSABLE" /> |
||||||
<category android:name="android.intent.category.APP_BROWSER" /> |
<category android:name="android.intent.category.APP_BROWSER" /> |
||||||
</intent-filter> |
</intent-filter> |
||||||
<intent-filter> |
<intent-filter> |
||||||
<action android:name="android.intent.action.VIEW" /> |
<action android:name="android.intent.action.VIEW" /> |
||||||
|
|
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<category android:name="android.intent.category.BROWSABLE" /> |
<category android:name="android.intent.category.BROWSABLE" /> |
||||||
|
|
||||||
<data android:scheme="http" /> |
<data android:scheme="http" /> |
||||||
<data android:scheme="https" /> |
<data android:scheme="https" /> |
||||||
<data android:scheme="about" /> |
<data android:scheme="about" /> |
||||||
<data android:scheme="javascript" /> |
<data android:scheme="javascript" /> |
||||||
</intent-filter> |
</intent-filter> |
||||||
<!-- |
<!-- |
||||||
For these schemes where any of these particular MIME types |
For these schemes where any of these particular MIME types |
||||||
have been supplied, we are a good candidate.
|
have been supplied, we are a good candidate. |
||||||
--> |
|
||||||
<intent-filter> |
|
||||||
<action android:name="android.intent.action.VIEW" /> |
--> |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.BROWSABLE" /> |
<action android:name="android.intent.action.VIEW" /> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" /> |
||||||
<data android:scheme="http" /> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<data android:scheme="https" /> |
|
||||||
<data android:scheme="inline" /> |
<data android:scheme="http" /> |
||||||
<data android:mimeType="text/html" /> |
<data android:scheme="https" /> |
||||||
<data android:mimeType="text/plain" /> |
<data android:scheme="inline" /> |
||||||
<data android:mimeType="application/xhtml+xml" /> |
<data android:mimeType="text/html" /> |
||||||
<data android:mimeType="application/vnd.wap.xhtml+xml" /> |
<data android:mimeType="text/plain" /> |
||||||
</intent-filter> |
<data android:mimeType="application/xhtml+xml" /> |
||||||
<!-- For viewing saved web archives. --> |
<data android:mimeType="application/vnd.wap.xhtml+xml" /> |
||||||
<intent-filter> |
</intent-filter> |
||||||
<action android:name="android.intent.action.VIEW" /> |
<!-- For viewing saved web archives. --> |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.BROWSABLE" /> |
<action android:name="android.intent.action.VIEW" /> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" /> |
||||||
<data android:scheme="http" /> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<data android:scheme="https" /> |
|
||||||
<data android:scheme="file" /> |
<data android:scheme="http" /> |
||||||
<data android:mimeType="application/x-webarchive-xml" /> |
<data android:scheme="https" /> |
||||||
</intent-filter> |
<data android:scheme="file" /> |
||||||
<intent-filter> |
<data android:mimeType="application/x-webarchive-xml" /> |
||||||
<action android:name="android.intent.action.WEB_SEARCH" /> |
</intent-filter> |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.WEB_SEARCH" /> |
||||||
<category android:name="android.intent.category.BROWSABLE" /> |
|
||||||
|
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<data android:scheme="" /> |
<category android:name="android.intent.category.BROWSABLE" /> |
||||||
<data android:scheme="http" /> |
|
||||||
<data android:scheme="https" /> |
<data android:scheme="" /> |
||||||
</intent-filter> |
<data android:scheme="http" /> |
||||||
</activity> |
<data android:scheme="https" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.SettingsActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/settings" |
android:name=".activity.SettingsActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/settings" |
||||||
<action android:name="android.intent.action.SETTINGS" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.SETTINGS" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.GeneralSettingsActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/settings_general" |
android:name=".activity.GeneralSettingsActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/settings_general" |
||||||
<action android:name="android.intent.action.GENERAL_SETTINGS" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.GENERAL_SETTINGS" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.DisplaySettingsActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/settings_display" |
android:name=".activity.DisplaySettingsActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/settings_display" |
||||||
<action android:name="android.intent.action.DISPLAY_SETTINGS" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.DISPLAY_SETTINGS" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.PrivacySettingsActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/settings_privacy" |
android:name=".activity.PrivacySettingsActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/settings_privacy" |
||||||
<action android:name="android.intent.action.PRIVACY_SETTINGS" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.PRIVACY_SETTINGS" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.AdvancedSettingsActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/settings_advanced" |
android:name=".activity.AdvancedSettingsActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/settings_advanced" |
||||||
<action android:name="android.intent.action.ADVANCED_SETTINGS" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.ADVANCED_SETTINGS" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.AboutSettingsActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/settings_about" |
android:name=".activity.AboutSettingsActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/settings_about" |
||||||
<action android:name="android.intent.action.ABOUT_SETTINGS" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.ABOUT_SETTINGS" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.IncognitoActivity" |
</activity> |
||||||
android:alwaysRetainTaskState="true" |
<activity |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
android:name=".activity.IncognitoActivity" |
||||||
android:label="@string/app_name" |
android:alwaysRetainTaskState="true" |
||||||
android:launchMode="singleTask" |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
android:theme="@style/Theme.DarkTheme" |
android:label="@string/app_name" |
||||||
android:windowSoftInputMode="stateHidden" > |
android:launchMode="singleTask" |
||||||
<intent-filter> |
android:theme="@style/Theme.DarkTheme" |
||||||
<action android:name="android.intent.action.INCOGNITO" /> |
android:windowSoftInputMode="stateHidden" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.INCOGNITO" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.LicenseActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/licenses" |
android:name=".activity.LicenseActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/licenses" |
||||||
<action android:name="android.intent.action.LICENSE" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.LICENSE" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.BookmarkActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/bookmark_settings" |
android:name=".activity.BookmarkActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/bookmark_settings" |
||||||
<action android:name="android.intent.action.BOOKMARK" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.BOOKMARK" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
<activity |
</intent-filter> |
||||||
android:name="acr.browser.lightning.ReadingActivity" |
</activity> |
||||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
<activity |
||||||
android:label="@string/reading_mode" |
android:name=".activity.ReadingActivity" |
||||||
android:theme="@style/Theme.SettingsTheme" > |
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" |
||||||
<intent-filter> |
android:label="@string/reading_mode" |
||||||
<action android:name="android.intent.action.READING" /> |
android:theme="@style/Theme.SettingsTheme" > |
||||||
|
<intent-filter> |
||||||
<category android:name="android.intent.category.DEFAULT" /> |
<action android:name="android.intent.action.READING" /> |
||||||
</intent-filter> |
|
||||||
</activity> |
<category android:name="android.intent.category.DEFAULT" /> |
||||||
</application> |
</intent-filter> |
||||||
|
</activity> |
||||||
|
</application> |
||||||
|
|
||||||
</manifest> |
</manifest> |
@ -1,101 +0,0 @@ |
|||||||
package acr.browser.lightning; |
|
||||||
|
|
||||||
import java.io.FilterInputStream; |
|
||||||
import java.io.IOException; |
|
||||||
import java.io.InputStream; |
|
||||||
import java.util.Deque; |
|
||||||
import java.util.Iterator; |
|
||||||
import java.util.LinkedList; |
|
||||||
|
|
||||||
public class ReplacingInputStream extends FilterInputStream { |
|
||||||
|
|
||||||
Deque<Integer> inQueue = new LinkedList<Integer>(); |
|
||||||
|
|
||||||
Deque<Integer> outQueue = new LinkedList<Integer>(); |
|
||||||
|
|
||||||
final byte[] search, replacement; |
|
||||||
|
|
||||||
protected ReplacingInputStream(InputStream in, byte[] search, byte[] replacement) { |
|
||||||
super(in); |
|
||||||
this.search = search; |
|
||||||
this.replacement = replacement; |
|
||||||
} |
|
||||||
|
|
||||||
private boolean isMatchFound() { |
|
||||||
Iterator<Integer> inIter = inQueue.iterator(); |
|
||||||
for (int i = 0; i < search.length; i++) { |
|
||||||
if (!inIter.hasNext() || search[i] != inIter.next()) { |
|
||||||
return false; |
|
||||||
} |
|
||||||
} |
|
||||||
return true; |
|
||||||
} |
|
||||||
|
|
||||||
private void readAhead() throws IOException { |
|
||||||
// Work up some look-ahead.
|
|
||||||
while (inQueue.size() < search.length) { |
|
||||||
int next = super.read(); |
|
||||||
inQueue.offer(next); |
|
||||||
if (next == -1) { |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public int read() throws IOException { |
|
||||||
|
|
||||||
// Next byte already determined.
|
|
||||||
if (outQueue.isEmpty()) { |
|
||||||
|
|
||||||
readAhead(); |
|
||||||
|
|
||||||
if (isMatchFound()) { |
|
||||||
for (int i = 0; i < search.length; i++) { |
|
||||||
inQueue.remove(); |
|
||||||
} |
|
||||||
|
|
||||||
for (byte b : replacement) { |
|
||||||
outQueue.offer((int) b); |
|
||||||
} |
|
||||||
} else { |
|
||||||
outQueue.add(inQueue.remove()); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
return outQueue.remove(); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Returns false. REFilterInputStream does not support mark() and reset() |
|
||||||
* methods. |
|
||||||
*/ |
|
||||||
@Override |
|
||||||
public boolean markSupported() { |
|
||||||
return false; |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Reads from the stream into the provided array. |
|
||||||
*/ |
|
||||||
@Override |
|
||||||
public int read(byte[] b, int off, int len) throws IOException { |
|
||||||
int i; |
|
||||||
int ok = 0; |
|
||||||
while (len-- > 0) { |
|
||||||
i = read(); |
|
||||||
if (i == -1) { |
|
||||||
return (ok == 0) ? -1 : ok; |
|
||||||
} |
|
||||||
b[off++] = (byte) i; |
|
||||||
ok++; |
|
||||||
} |
|
||||||
return ok; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public int read(byte[] buffer) throws IOException { |
|
||||||
|
|
||||||
return read(buffer, 0, buffer.length); |
|
||||||
} |
|
||||||
} |
|
@ -1,4 +1,4 @@ |
|||||||
package acr.browser.lightning; |
package acr.browser.lightning.activity; |
||||||
|
|
||||||
import android.app.Application; |
import android.app.Application; |
||||||
import android.content.Context; |
import android.content.Context; |
@ -1,8 +1,12 @@ |
|||||||
package acr.browser.lightning; |
package acr.browser.lightning.activity; |
||||||
|
|
||||||
import java.util.ArrayList; |
import java.util.ArrayList; |
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
|
import acr.browser.lightning.constant.Constants; |
||||||
|
import acr.browser.lightning.preference.PreferenceManager; |
||||||
|
import acr.browser.lightning.R; |
||||||
|
import acr.browser.lightning.utils.Utils; |
||||||
import acr.browser.lightning.reading.HtmlFetcher; |
import acr.browser.lightning.reading.HtmlFetcher; |
||||||
import acr.browser.lightning.reading.JResult; |
import acr.browser.lightning.reading.JResult; |
||||||
import android.animation.ObjectAnimator; |
import android.animation.ObjectAnimator; |
@ -1,9 +1,12 @@ |
|||||||
package acr.browser.lightning; |
package acr.browser.lightning.activity; |
||||||
|
|
||||||
import android.content.Intent; |
import android.content.Intent; |
||||||
import android.os.Bundle; |
import android.os.Bundle; |
||||||
import android.support.v7.app.ActionBarActivity; |
import android.support.v7.app.ActionBarActivity; |
||||||
|
|
||||||
|
import acr.browser.lightning.preference.PreferenceManager; |
||||||
|
import acr.browser.lightning.R; |
||||||
|
|
||||||
public abstract class ThemableActivity extends ActionBarActivity { |
public abstract class ThemableActivity extends ActionBarActivity { |
||||||
|
|
||||||
private boolean mDark; |
private boolean mDark; |
@ -1,9 +1,12 @@ |
|||||||
package acr.browser.lightning; |
package acr.browser.lightning.activity; |
||||||
|
|
||||||
import android.content.Intent; |
import android.content.Intent; |
||||||
import android.os.Bundle; |
import android.os.Bundle; |
||||||
import android.support.v7.app.ActionBarActivity; |
import android.support.v7.app.ActionBarActivity; |
||||||
|
|
||||||
|
import acr.browser.lightning.preference.PreferenceManager; |
||||||
|
import acr.browser.lightning.R; |
||||||
|
|
||||||
public abstract class ThemableSettingsActivity extends ActionBarActivity { |
public abstract class ThemableSettingsActivity extends ActionBarActivity { |
||||||
|
|
||||||
private boolean mDark; |
private boolean mDark; |
@ -1,7 +1,10 @@ |
|||||||
/* |
/* |
||||||
* Copyright 2014 A.C.R. Development |
* Copyright 2014 A.C.R. Development |
||||||
*/ |
*/ |
||||||
package acr.browser.lightning; |
package acr.browser.lightning.constant; |
||||||
|
|
||||||
|
import acr.browser.lightning.R; |
||||||
|
import acr.browser.lightning.activity.BrowserApp; |
||||||
|
|
||||||
public class BookmarkPage { |
public class BookmarkPage { |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
/* |
/* |
||||||
* Copyright 2014 A.C.R. Development |
* Copyright 2014 A.C.R. Development |
||||||
*/ |
*/ |
||||||
package acr.browser.lightning; |
package acr.browser.lightning.constant; |
||||||
|
|
||||||
import android.os.Environment; |
import android.os.Environment; |
||||||
|
|
@ -1,9 +1,12 @@ |
|||||||
/* |
/* |
||||||
* Copyright 2014 A.C.R. Development |
* Copyright 2014 A.C.R. Development |
||||||
*/ |
*/ |
||||||
package acr.browser.lightning; |
package acr.browser.lightning.constant; |
||||||
|
|
||||||
public class HomepageVariables { |
import acr.browser.lightning.activity.BrowserApp; |
||||||
|
import acr.browser.lightning.R; |
||||||
|
|
||||||
|
public class StartPage { |
||||||
|
|
||||||
public static final String HEAD = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\">" |
public static final String HEAD = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\">" |
||||||
+ "<head>" |
+ "<head>" |
@ -1,7 +1,7 @@ |
|||||||
/* |
/* |
||||||
* Copyright 2014 A.C.R. Development |
* Copyright 2014 A.C.R. Development |
||||||
*/ |
*/ |
||||||
package acr.browser.lightning; |
package acr.browser.lightning.controller; |
||||||
|
|
||||||
import android.app.Activity; |
import android.app.Activity; |
||||||
import android.graphics.Bitmap; |
import android.graphics.Bitmap; |
@ -1,7 +1,7 @@ |
|||||||
/* |
/* |
||||||
* Copyright 2014 A.C.R. Development |
* Copyright 2014 A.C.R. Development |
||||||
*/ |
*/ |
||||||
package acr.browser.lightning; |
package acr.browser.lightning.database; |
||||||
|
|
||||||
import android.graphics.Bitmap; |
import android.graphics.Bitmap; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
/* |
/* |
||||||
* Copyright 2014 A.C.R. Development |
* Copyright 2014 A.C.R. Development |
||||||
*/ |
*/ |
||||||
package acr.browser.lightning; |
package acr.browser.lightning.download; |
||||||
|
|
||||||
import java.util.Locale; |
import java.util.Locale; |
||||||
import java.util.regex.Matcher; |
import java.util.regex.Matcher; |
@ -1,12 +1,14 @@ |
|||||||
/* |
/* |
||||||
* Copyright 2014 A.C.R. Development |
* Copyright 2014 A.C.R. Development |
||||||
*/ |
*/ |
||||||
package acr.browser.lightning; |
package acr.browser.lightning.object; |
||||||
|
|
||||||
import android.content.Context; |
import android.content.Context; |
||||||
import android.os.Handler; |
import android.os.Handler; |
||||||
import android.os.Message; |
import android.os.Message; |
||||||
|
|
||||||
|
import acr.browser.lightning.controller.BrowserController; |
||||||
|
|
||||||
public class ClickHandler extends Handler { |
public class ClickHandler extends Handler { |
||||||
|
|
||||||
private BrowserController mBrowserController; |
private BrowserController mBrowserController; |
@ -1,8 +1,11 @@ |
|||||||
package acr.browser.lightning; |
package acr.browser.lightning.preference; |
||||||
|
|
||||||
import android.content.SharedPreferences; |
import android.content.SharedPreferences; |
||||||
import android.os.Environment; |
import android.os.Environment; |
||||||
|
|
||||||
|
import acr.browser.lightning.activity.BrowserApp; |
||||||
|
import acr.browser.lightning.constant.Constants; |
||||||
|
|
||||||
public class PreferenceManager { |
public class PreferenceManager { |
||||||
|
|
||||||
private static class Name { |
private static class Name { |
Loading…
Reference in new issue