Remove unused resources, code cleanup
This commit is contained in:
parent
051a453e7b
commit
e335a2b936
@ -8,8 +8,8 @@ android {
|
||||
applicationId "acr.browser.lightning"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 22
|
||||
versionCode 77
|
||||
versionName "4.0.9a"
|
||||
versionCode 78
|
||||
versionName "4.0.10a"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@ -33,8 +33,8 @@ android {
|
||||
dependencies {
|
||||
compile(project(':libnetcipher')) {
|
||||
// Exclude any support-v4 modules because appcompat-v7 will import the latest
|
||||
exclude module:'support-v4'
|
||||
exclude module:'android-support-v4'
|
||||
exclude module: 'support-v4'
|
||||
exclude module: 'android-support-v4'
|
||||
}
|
||||
compile 'com.android.support:palette-v7:22.1.1'
|
||||
compile 'com.android.support:appcompat-v7:22.1.1'
|
||||
|
@ -127,7 +127,7 @@ public class ArticleTextExtractor {
|
||||
}
|
||||
|
||||
public JResult extractContent(JResult res, Document doc, OutputFormatter formatter)
|
||||
throws Exception {
|
||||
throws NullPointerException {
|
||||
if (doc == null)
|
||||
throw new NullPointerException("missing document");
|
||||
|
||||
|
@ -298,13 +298,13 @@ public class HtmlFetcher {
|
||||
return SHelper.useDomainOfFirstArg4Second(url, urlOrPath);
|
||||
}
|
||||
|
||||
public String fetchAsString(String urlAsString, int timeout) throws MalformedURLException,
|
||||
public String fetchAsString(String urlAsString, int timeout) throws
|
||||
IOException {
|
||||
return fetchAsString(urlAsString, timeout, true);
|
||||
}
|
||||
|
||||
public String fetchAsString(String urlAsString, int timeout, boolean includeSomeGooseOptions)
|
||||
throws MalformedURLException, IOException {
|
||||
throws IOException {
|
||||
HttpURLConnection hConn = createUrlConnection(urlAsString, timeout, includeSomeGooseOptions);
|
||||
hConn.setInstanceFollowRedirects(true);
|
||||
String encoding = hConn.getContentEncoding();
|
||||
@ -401,7 +401,7 @@ public class HtmlFetcher {
|
||||
}
|
||||
|
||||
protected HttpURLConnection createUrlConnection(String urlAsStr, int timeout,
|
||||
boolean includeSomeGooseOptions) throws MalformedURLException, IOException {
|
||||
boolean includeSomeGooseOptions) throws IOException {
|
||||
URL url = new URL(urlAsStr);
|
||||
// using proxy may increase latency
|
||||
HttpURLConnection hConn = (HttpURLConnection) url.openConnection(Proxy.NO_PROXY);
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 296 B |
Binary file not shown.
Before Width: | Height: | Size: 391 B |
Binary file not shown.
Before Width: | Height: | Size: 174 B |
Binary file not shown.
Before Width: | Height: | Size: 179 B |
Binary file not shown.
Before Width: | Height: | Size: 722 B |
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:id="@android:id/background"
|
||||
android:drawable="@drawable/progress_bar_bg" />
|
||||
|
||||
<item android:id="@android:id/secondaryProgress">
|
||||
<scale android:scaleWidth="100%"
|
||||
android:drawable="@drawable/progress_bar" />
|
||||
</item>
|
||||
|
||||
<item android:id="@android:id/progress">
|
||||
<scale android:scaleWidth="100%"
|
||||
android:drawable="@drawable/progress_bar" />
|
||||
</item>
|
||||
|
||||
</layer-list>
|
@ -5,7 +5,7 @@
|
||||
|
||||
<!-- customize the color palette -->
|
||||
<item name="toolbarSettingsBackground">@color/primary_color</item>
|
||||
<item name="listBackground">@drawable/list_bg</item>
|
||||
<item name="listBackground">?attr/listChoiceBackgroundIndicator</item>
|
||||
<item name="colorPrimary">@color/primary_color</item>
|
||||
<item name="colorPrimaryDark">@color/secondary_color_settings</item>
|
||||
<item name="colorAccent">@color/accent_color</item>
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
<!-- customize the color palette -->
|
||||
<item name="toolbarSettingsBackground">@color/primary_color_dark</item>
|
||||
<item name="listBackground">@drawable/list_bg</item>
|
||||
<item name="listBackground">?attr/listChoiceBackgroundIndicator</item>
|
||||
<item name="colorPrimary">@color/primary_color_dark</item>
|
||||
<item name="colorPrimaryDark">@color/secondary_color_settings_dark</item>
|
||||
<item name="colorAccent">@color/accent_color</item>
|
||||
|
Loading…
Reference in New Issue
Block a user