mirror of
https://github.com/seven332/EhViewer
synced 2026-12-06 13:59:01 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e197ce3fe2 | ||
|
|
02e1185ebe | ||
|
|
b992602b2d | ||
|
|
0782469760 | ||
|
|
938c1a2e88 | ||
|
|
0a2c442b75 | ||
|
|
6b6c50f8cc | ||
|
|
fd7ea32942 | ||
|
|
d02e211ee3 | ||
|
|
6d8d16d1f8 | ||
|
|
af8c480588 | ||
|
|
5d0e035b35 | ||
|
|
f8e51c3ff7 | ||
|
|
9cb7d20dfc |
No files matched your search
Generated
+25
-2
@@ -3,8 +3,31 @@
|
||||
<component name="EntryPointsManager">
|
||||
<entry_points version="2.0" />
|
||||
</component>
|
||||
<component name="NullableNotNullManager">
|
||||
<option name="myDefaultNullable" value="org.jetbrains.annotations.Nullable" />
|
||||
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
|
||||
<option name="myNullables">
|
||||
<value>
|
||||
<list size="4">
|
||||
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
|
||||
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
|
||||
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
|
||||
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
<option name="myNotNulls">
|
||||
<value>
|
||||
<list size="4">
|
||||
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
|
||||
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
|
||||
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
|
||||
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</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">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
</project>
|
||||
|
||||
</project>
|
||||
+2
-2
@@ -8,8 +8,8 @@ android {
|
||||
applicationId "com.hippo.ehviewer"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 22
|
||||
versionCode 36
|
||||
versionName "0.6.12"
|
||||
versionCode 40
|
||||
versionName "0.6.14"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
|
||||
@@ -19,7 +19,6 @@ package com.hippo.ehviewer;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Typeface;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.text.util.Linkify;
|
||||
import android.view.View;
|
||||
@@ -31,6 +30,7 @@ import com.hippo.ehviewer.app.MaterialAlertDialog;
|
||||
import com.hippo.ehviewer.network.Network;
|
||||
import com.hippo.ehviewer.ui.AbsActivity;
|
||||
import com.hippo.ehviewer.ui.GalleryListActivity;
|
||||
import com.hippo.ehviewer.util.AppUtils;
|
||||
import com.hippo.ehviewer.util.Config;
|
||||
import com.hippo.ehviewer.util.Crash;
|
||||
import com.hippo.ehviewer.util.Secret;
|
||||
@@ -160,11 +160,9 @@ public class StartActivity extends AbsActivity {
|
||||
return true;
|
||||
}
|
||||
}).show();
|
||||
Intent i = new Intent(Intent.ACTION_SENDTO);
|
||||
i.setData(Uri.parse("mailto:ehviewersu@gmail.com"));
|
||||
i.putExtra(Intent.EXTRA_SUBJECT, "I found a bug in EhViewer !");
|
||||
i.putExtra(Intent.EXTRA_TEXT, lastCrash + "======== Description ========\n" + et.getText().toString());
|
||||
startActivity(i);
|
||||
AppUtils.sendEmail(StartActivity.this, "ehviewersu@gmail.com",
|
||||
"I found a bug in EhViewer !",
|
||||
lastCrash + "======== Description ========\n" + et.getText().toString());
|
||||
lastCrash = null;
|
||||
break;
|
||||
case MaterialAlertDialog.NEGATIVE:
|
||||
|
||||
+32
-67
@@ -17,8 +17,11 @@
|
||||
package com.hippo.ehviewer.cache;
|
||||
|
||||
import android.os.Looper;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.util.LruCache;
|
||||
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.File;
|
||||
@@ -28,10 +31,12 @@ import java.io.OutputStream;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
|
||||
public class AnyCache<V> {
|
||||
public abstract class AnyCache<V> {
|
||||
|
||||
private LruCache<String, V> mMemoryCache;
|
||||
private DiskCache<V> mDiskCache;
|
||||
private static final String TAG = AnyCache.class.getSimpleName();
|
||||
|
||||
private @Nullable LruCache<String, V> mMemoryCache;
|
||||
private @Nullable DiskCache<V> mDiskCache;
|
||||
|
||||
/**
|
||||
* Used to temporarily pause the disk cache while scrolling
|
||||
@@ -39,19 +44,21 @@ public class AnyCache<V> {
|
||||
public boolean mPauseDiskAccess = false;
|
||||
private final Object mPauseLock = new Object();
|
||||
|
||||
private AnyCache(Builder builder) {
|
||||
if (builder.mMemoryCacheMaxSize > 0 && builder.mMemoryCacheHelper != null) {
|
||||
mMemoryCache = new MemoryCahce<V>(
|
||||
builder.mMemoryCacheMaxSize, builder.mMemoryCacheHelper);
|
||||
}
|
||||
if (builder.mDiskCacheDir != null && builder.mDiskCacheMaxSize > 0 &&
|
||||
builder.mDiskCacheHelper != null) {
|
||||
try {
|
||||
mDiskCache = new DiskCache<V>(
|
||||
builder.mDiskCacheDir, builder.mDiskCacheMaxSize, builder.mDiskCacheHelper);
|
||||
} catch (IOException e) {
|
||||
// Can't create disk cache
|
||||
}
|
||||
protected abstract int sizeOf(String key, V value);
|
||||
|
||||
protected abstract V read(InputStream is);
|
||||
|
||||
protected abstract boolean write(OutputStream os, V value);
|
||||
|
||||
public void setMemoryCache(int maxSize) {
|
||||
mMemoryCache = new MemoryCahce<V>(maxSize, this);
|
||||
}
|
||||
|
||||
public void setDiskCache(File cacheDir, int maxSize) {
|
||||
try {
|
||||
mDiskCache = new DiskCache<V>(cacheDir, maxSize, this);
|
||||
} catch (IOException e) {
|
||||
Log.w(TAG, "Can't create disk cache", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -271,68 +278,32 @@ public class AnyCache<V> {
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private int mMemoryCacheMaxSize;
|
||||
private MemoryCacheHelper mMemoryCacheHelper;
|
||||
|
||||
private File mDiskCacheDir;
|
||||
private int mDiskCacheMaxSize;
|
||||
private DiskCacheHelper mDiskCacheHelper;
|
||||
|
||||
public Builder setMemoryCache(int maxSize, MemoryCacheHelper helper) {
|
||||
mMemoryCacheMaxSize = maxSize;
|
||||
mMemoryCacheHelper = helper;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set this dir to store disk cache.
|
||||
*
|
||||
* @param cacheDir this dir to store disk cache, null for no disk cache
|
||||
* @return the Builder
|
||||
*/
|
||||
public Builder setDiskCache(File cacheDir, int maxSize, DiskCacheHelper helper) {
|
||||
mDiskCacheDir = cacheDir;
|
||||
mDiskCacheMaxSize = maxSize;
|
||||
mDiskCacheHelper = helper;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AnyCache build() {
|
||||
return new AnyCache(this);
|
||||
}
|
||||
}
|
||||
|
||||
public class MemoryCahce<E> extends LruCache<String, E> {
|
||||
|
||||
private MemoryCacheHelper<E> mHelper;
|
||||
public AnyCache<E> mParent;
|
||||
|
||||
public MemoryCahce(int maxSize, MemoryCacheHelper<E> helper) {
|
||||
public MemoryCahce(int maxSize, AnyCache<E> parent) {
|
||||
super(maxSize);
|
||||
mHelper = helper;
|
||||
mParent = parent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int sizeOf(String key, E value) {
|
||||
return mHelper.sizeOf(key, value);
|
||||
return mParent.sizeOf(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract static class MemoryCacheHelper<E> {
|
||||
public abstract int sizeOf(String key, E value);
|
||||
}
|
||||
|
||||
public static class DiskCache<E> {
|
||||
|
||||
private static final int IO_BUFFER_SIZE = 8 * 1024;
|
||||
|
||||
public DiskLruCache mDiskLruCache;
|
||||
public DiskCacheHelper<E> mHelper;
|
||||
public AnyCache<E> mParent;
|
||||
|
||||
public DiskCache(File cacheDir, int size, DiskCacheHelper<E> helper) throws IOException {
|
||||
public DiskCache(File cacheDir, int size, AnyCache<E> parent) throws IOException {
|
||||
mDiskLruCache = DiskLruCache.open(cacheDir, 1, 1, size);
|
||||
mHelper = helper;
|
||||
mParent = parent;
|
||||
}
|
||||
|
||||
public E get(String key) {
|
||||
@@ -348,7 +319,7 @@ public class AnyCache<V> {
|
||||
if (in != null) {
|
||||
final BufferedInputStream buffIn =
|
||||
new BufferedInputStream(in, IO_BUFFER_SIZE);
|
||||
return mHelper.get(buffIn);
|
||||
return mParent.read(buffIn);
|
||||
} else {
|
||||
// Can't get InputStream
|
||||
return null;
|
||||
@@ -375,7 +346,7 @@ public class AnyCache<V> {
|
||||
if (os != null) {
|
||||
final BufferedOutputStream buffOut =
|
||||
new BufferedOutputStream(os, IO_BUFFER_SIZE);
|
||||
boolean result = mHelper.put(buffOut, value);
|
||||
boolean result = mParent.write(buffOut, value);
|
||||
mDiskLruCache.flush();
|
||||
editor.commit();
|
||||
return result;
|
||||
@@ -396,10 +367,4 @@ public class AnyCache<V> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public abstract static class DiskCacheHelper<E> {
|
||||
public abstract E get(InputStream is);
|
||||
|
||||
public abstract boolean put(OutputStream os, E value);
|
||||
}
|
||||
}
|
||||
+38
-47
@@ -20,13 +20,13 @@ import android.app.ActivityManager;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.os.Build;
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
public class ImageCache {
|
||||
public class ImageCache extends AnyCache<Bitmap>{
|
||||
|
||||
private static final String TAG = "ImageCache";
|
||||
|
||||
@@ -45,38 +45,53 @@ public class ImageCache {
|
||||
*/
|
||||
private static final int COMPRESS_QUALITY = 98;
|
||||
|
||||
private static AnyCache<Bitmap> sImageCache;
|
||||
private static ImageCache sImageCache;
|
||||
|
||||
public static AnyCache<Bitmap> getImageCache(Context context) {
|
||||
public static @NonNull ImageCache getImageCache(@NonNull Context context) {
|
||||
if (sImageCache == null) {
|
||||
AnyCache.Builder builder = new AnyCache.Builder();
|
||||
|
||||
final ActivityManager activityManager = (ActivityManager)context
|
||||
.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
final int memoryCacheMax = Math.round(MEM_CACHE_DIVIDER * activityManager.getMemoryClass()
|
||||
* 1024 * 1024);
|
||||
builder.setMemoryCache(memoryCacheMax, new BitmapMemoryCacheHelper());
|
||||
|
||||
File diskCacheDir = getDiskCacheDir(context, TAG);
|
||||
if (diskCacheDir != null) {
|
||||
if (!diskCacheDir.exists()) {
|
||||
diskCacheDir.mkdirs();
|
||||
}
|
||||
builder.setDiskCache(diskCacheDir, 20 * 1024 * 1024, new BitmapDiskCacheHelper());
|
||||
}
|
||||
|
||||
sImageCache = builder.build();
|
||||
sImageCache = new ImageCache(context.getApplicationContext());
|
||||
}
|
||||
return sImageCache;
|
||||
}
|
||||
|
||||
private ImageCache(Context context) {
|
||||
final ActivityManager activityManager = (ActivityManager)context
|
||||
.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
final int memoryCacheMax = Math.round(MEM_CACHE_DIVIDER * activityManager.getMemoryClass()
|
||||
* 1024 * 1024);
|
||||
setMemoryCache(memoryCacheMax);
|
||||
|
||||
File diskCacheDir = getDiskCacheDir(context, TAG);
|
||||
if (diskCacheDir != null) {
|
||||
if (!diskCacheDir.exists()) {
|
||||
diskCacheDir.mkdirs();
|
||||
}
|
||||
setDiskCache(diskCacheDir, 20 * 1024 * 1024);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int sizeOf(String key, Bitmap value) {
|
||||
return value.getByteCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Bitmap read(InputStream is) {
|
||||
return BitmapFactory.decodeStream(is);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean write(OutputStream os, Bitmap value) {
|
||||
return value.compress(COMPRESS_FORMAT, COMPRESS_QUALITY, os);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the external app cache directory
|
||||
*
|
||||
* @param context The {@link Context} to use
|
||||
* @return The external cache directory
|
||||
*/
|
||||
public static File getExternalCacheDir(final Context context) {
|
||||
private static File getExternalCacheDir(final Context context) {
|
||||
return context.getExternalCacheDir();
|
||||
}
|
||||
|
||||
@@ -88,35 +103,11 @@ public class ImageCache {
|
||||
* directory
|
||||
* @return The cache directory
|
||||
*/
|
||||
public static File getDiskCacheDir(final Context context, final String uniqueName) {
|
||||
private static File getDiskCacheDir(final Context context, final String uniqueName) {
|
||||
// getExternalCacheDir(context) returns null if external storage is not ready
|
||||
final String cachePath = getExternalCacheDir(context) != null
|
||||
? getExternalCacheDir(context).getPath()
|
||||
: context.getCacheDir().getPath();
|
||||
return new File(cachePath, uniqueName);
|
||||
}
|
||||
|
||||
private static class BitmapMemoryCacheHelper extends AnyCache.MemoryCacheHelper<Bitmap> {
|
||||
@Override
|
||||
public int sizeOf(String key, android.graphics.Bitmap bitmap) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||
return bitmap.getAllocationByteCount();
|
||||
} else {
|
||||
return bitmap.getByteCount();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class BitmapDiskCacheHelper extends AnyCache.DiskCacheHelper<Bitmap> {
|
||||
@Override
|
||||
public Bitmap get(InputStream is) {
|
||||
return BitmapFactory.decodeStream(is);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean put(OutputStream os, Bitmap value) {
|
||||
value.compress(COMPRESS_FORMAT, COMPRESS_QUALITY, os);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -140,8 +140,8 @@ public class DetailParser {
|
||||
//+ "<tr><td[^<>]*>Resized:</td><td[^<>]*>([^<>]+)</td></tr>" // resized
|
||||
+ "<tr><td[^<>]*>Parent:</td><td[^<>]*>(?:<a[^<>]*>)?([^<>]+)(?:</a>)?</td></tr>" // parent
|
||||
+ "<tr><td[^<>]*>Visible:</td><td[^<>]*>([^<>]+)</td></tr>" // visible
|
||||
+ "<tr><td[^<>]*>Language:</td><td[^<>]*>([^<>]+)</td></tr>" // language
|
||||
+ "<tr><td[^<>]*>File Size:</td><td[^<>]*>([^<>]+)<span[^<>]*>([^<>]+)</span></td></tr>" // File size and resize
|
||||
+ "<tr><td[^<>]*>Language:</td><td[^<>]*>([^<>]+)(?:<span[^<>]*>[^<>]*</span>)?</td></tr>" // language
|
||||
+ "<tr><td[^<>]*>File Size:</td><td[^<>]*>([^<>]+)(?:<span[^<>]*>([^<>]+)</span>)?</td></tr>" // File size and resize
|
||||
+ "<tr><td[^<>]*>Length:</td><td[^<>]*>([\\d|,]+) pages</td></tr>" // pages
|
||||
+ "<tr><td[^<>]*>Favorited:</td><[^<>]*>([^<>]+)</td></tr>" // Favorite times ([\d|,]+) times or Never
|
||||
+ ".+"
|
||||
@@ -236,7 +236,7 @@ public class DetailParser {
|
||||
// Get comment
|
||||
if ((mode & COMMENT) != 0) {
|
||||
p = Pattern
|
||||
.compile("<div class=\"c3\">Posted on ([^<>]+) by <a[^<>]+>([^<>]+)</a>.+?<div class=\"c6\"[^>]*>(.+?)</div><div class=\"c[78]\"");
|
||||
.compile("<div class=\"c3\">Posted on ([^<>]+) by: <a[^<>]+>([^<>]+)</a>.+?<div class=\"c6\"[^>]*>(.+?)</div><div class=\"c[78]\"");
|
||||
m = p.matcher(body);
|
||||
comments = new LinkedList<Comment>();
|
||||
while (m.find()) {
|
||||
|
||||
@@ -21,6 +21,7 @@ import android.content.SharedPreferences;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.hippo.ehviewer.R;
|
||||
import com.hippo.ehviewer.util.Config;
|
||||
@@ -76,6 +77,12 @@ public class EhInfo {
|
||||
private String mPreviewMode;
|
||||
private int mExculdeTagGroup;
|
||||
private String mExculdeLanguage;
|
||||
|
||||
private boolean mHAHProxy;
|
||||
private String mHAHIp;
|
||||
private String mHAHPort;
|
||||
private String mHAHPasskey;
|
||||
|
||||
private static EhInfo sInstance;
|
||||
|
||||
private BitmapDrawable getAvatarFromFile() {
|
||||
@@ -110,16 +117,29 @@ public class EhInfo {
|
||||
mPreviewMode = Config.getPreviewMode();
|
||||
mExculdeTagGroup = Config.getExculdeTagGroup();
|
||||
mExculdeLanguage = Config.getExculdeLanguage();
|
||||
mHAHProxy = Config.getHAHProxy();
|
||||
mHAHIp = Config.getHAHIp();
|
||||
mHAHPort = Config.getHAHPort();
|
||||
mHAHPasskey = Config.getHAHPasskey();
|
||||
updateUconfig();
|
||||
};
|
||||
}
|
||||
|
||||
private String getUconfigString(String previewMode) {
|
||||
return new StringBuilder().append("cats_").append(mDefaultCat)
|
||||
.append("-ts_").append(previewMode == null ? mPreviewMode : previewMode)
|
||||
.append("-xns_").append(mExculdeTagGroup)
|
||||
.append("-xl_").append(mExculdeLanguage)
|
||||
.append("-tl_m-uh_y-tr_2-prn_n-dm_l-ar_0-rc_0-rx_0-ry_0-sa_y-oi_n-qb_n-tf_n-hp_-hk_-ms_n-mt_n")
|
||||
.toString();
|
||||
String proxy;
|
||||
if (!mHAHProxy || TextUtils.isEmpty(mHAHIp) || TextUtils.isEmpty(mHAHPort)) {
|
||||
proxy = "";
|
||||
} else {
|
||||
proxy = mHAHIp + "%3A" + mHAHPort;
|
||||
}
|
||||
|
||||
return "cats_" + mDefaultCat
|
||||
+ "-ts_" + (previewMode == null ? mPreviewMode : previewMode)
|
||||
+ "-xns_" + mExculdeTagGroup
|
||||
+ "-xl_" + mExculdeLanguage
|
||||
+ "-hp_" + proxy
|
||||
+ "-hk_" + mHAHPasskey
|
||||
+ "-prn_" + (TextUtils.isEmpty(proxy) ? "n" : "y")
|
||||
+ "-tl_m-uh_y-tr_2-dm_l-ar_0-rc_0-rx_0-ry_0-sa_y-oi_n-qb_n-tf_n-ms_n-mt_n";
|
||||
}
|
||||
|
||||
private void updateUconfig() {
|
||||
@@ -186,6 +206,7 @@ public class EhInfo {
|
||||
// Fake
|
||||
sb.append("; igneous=");
|
||||
sb.append("; lv=");
|
||||
|
||||
conn.setRequestProperty("Cookie", sb.toString());
|
||||
}
|
||||
|
||||
@@ -266,4 +287,16 @@ public class EhInfo {
|
||||
mExculdeLanguage = exculdeLanguage;
|
||||
updateUconfig();
|
||||
}
|
||||
|
||||
public void setHAHProxy(boolean hahProxy) {
|
||||
mHAHProxy = hahProxy;
|
||||
updateUconfig();
|
||||
}
|
||||
|
||||
public void setHAHProxy(String ip, String port, String passkey) {
|
||||
mHAHIp = ip;
|
||||
mHAHPort = port;
|
||||
mHAHPasskey = passkey;
|
||||
updateUconfig();
|
||||
}
|
||||
}
|
||||
@@ -16,20 +16,6 @@
|
||||
|
||||
package com.hippo.ehviewer.ehclient;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.EOFException;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
||||
import android.app.NotificationManager;
|
||||
import android.content.Context;
|
||||
import android.os.Process;
|
||||
@@ -44,6 +30,20 @@ import com.hippo.ehviewer.util.EhUtils;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import com.hippo.ehviewer.util.Utils;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.EOFException;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
||||
// TODO what a mess
|
||||
public final class ExDownloader implements Runnable {
|
||||
|
||||
@@ -106,7 +106,7 @@ public final class ExDownloader implements Runnable {
|
||||
private volatile long mLastUpdateSpeedTime = 0;
|
||||
private volatile long mAccumulateSize;
|
||||
private volatile HashSet<Integer> mDownloadIndexSet;
|
||||
private volatile Object mDownloadLock = new Object();
|
||||
private final Object mDownloadLock = new Object();
|
||||
|
||||
private int mCurReadIndex = 0;
|
||||
|
||||
@@ -476,7 +476,7 @@ public final class ExDownloader implements Runnable {
|
||||
if (edp.isLastPage) {
|
||||
mPreviewPageNum = pageIndex + 1;
|
||||
mImageNum = pageIndex * mPreviewPerPage + pageTokenArray.size();
|
||||
} else if (!edp.isLastPage && mPreviewPageNum == -1) {
|
||||
} else if (mPreviewPageNum == -1) {
|
||||
mCurMaxPreviewPage = Math.max(mCurMaxPreviewPage, pageIndex + 1);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
package com.hippo.ehviewer.ehclient;
|
||||
|
||||
import com.hippo.ehviewer.util.Utils;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import com.hippo.ehviewer.util.Utils;
|
||||
|
||||
public class ImagePageParser {
|
||||
|
||||
public String imageUrl;
|
||||
@@ -61,9 +61,10 @@ public class ImagePageParser {
|
||||
}
|
||||
|
||||
} else {
|
||||
p = Pattern.compile("<div id=\"i3\">.+?<img id=\"img\" src=\"(.+?)\""
|
||||
+ ".+?"
|
||||
+ "<div id=\"i5\"><div class=\"sb\"><a href=\"(?:http|https)://.+?/g/(\\d+)/(\\w+)");
|
||||
p = Pattern.compile(
|
||||
"<(?:/iframe|div id=\"i3\")[^>]*><a[^>]*><img[^>]*src=\"(.+?)\"" +
|
||||
".+?" +
|
||||
"<div class=\"sb\"><a href=\"(?:http|https)://.+?/g/(\\d+)/(\\w+)");
|
||||
m = p.matcher(body);
|
||||
if (m.find()) {
|
||||
imageUrl = Utils.unescapeXml(m.group(1));
|
||||
|
||||
@@ -16,15 +16,6 @@
|
||||
|
||||
package com.hippo.ehviewer.ui;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
@@ -41,6 +32,7 @@ import android.os.SystemClock;
|
||||
import android.preference.CheckBoxPreference;
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceFragment;
|
||||
import android.preference.SwitchPreference;
|
||||
import android.provider.SearchRecentSuggestions;
|
||||
import android.text.util.Linkify;
|
||||
import android.view.MenuItem;
|
||||
@@ -67,6 +59,7 @@ import com.hippo.ehviewer.ehclient.EhClient;
|
||||
import com.hippo.ehviewer.ehclient.EhInfo;
|
||||
import com.hippo.ehviewer.network.HttpHelper;
|
||||
import com.hippo.ehviewer.preference.ListPreference;
|
||||
import com.hippo.ehviewer.util.AppUtils;
|
||||
import com.hippo.ehviewer.util.BgThread;
|
||||
import com.hippo.ehviewer.util.Config;
|
||||
import com.hippo.ehviewer.util.DialogUtils;
|
||||
@@ -80,6 +73,15 @@ import com.hippo.ehviewer.widget.CategoryTable;
|
||||
import com.hippo.ehviewer.widget.MaterialToast;
|
||||
import com.hippo.ehviewer.widget.SuggestionHelper;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class SettingsActivity extends AbsPreferenceActivity {
|
||||
@SuppressWarnings("unused")
|
||||
private static String TAG = SettingsActivity.class.getSimpleName();
|
||||
@@ -197,6 +199,8 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
private static final String KEY_CLEAR_SUGGESTIONS = "clear_suggestions";
|
||||
private static final String KEY_PREVIEW_MODE = "preview_mode";
|
||||
private static final String KEY_DEFAULT_FAVORITE = "default_favorite";
|
||||
private static final String KEY_HAH_PROXY = "hah_proxy";
|
||||
private static final String KEY_HAH_PROXY_CONFIG = "hah_proxy_config";
|
||||
|
||||
private Preference mListDefaultCategory;
|
||||
private Preference mExculdeTagGroup;
|
||||
@@ -204,6 +208,8 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
private Preference mClearSuggestions;
|
||||
private ListPreference mPreviewMode;
|
||||
private ListPreference mDefaultFavorite;
|
||||
private SwitchPreference mHAHProxy;
|
||||
private Preference mHAHProxyConfig;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
@@ -221,6 +227,10 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
mPreviewMode = (ListPreference) findPreference(KEY_PREVIEW_MODE);
|
||||
mPreviewMode.setOnPreferenceChangeListener(this);
|
||||
mDefaultFavorite = (ListPreference) findPreference(KEY_DEFAULT_FAVORITE);
|
||||
mHAHProxy = (SwitchPreference) findPreference(KEY_HAH_PROXY);
|
||||
mHAHProxy.setOnPreferenceChangeListener(this);
|
||||
mHAHProxyConfig = findPreference(KEY_HAH_PROXY_CONFIG);
|
||||
mHAHProxyConfig.setOnPreferenceClickListener(this);
|
||||
|
||||
int i = 0;
|
||||
String[] entrise = new String[Favorite.FAVORITE_TITLES.length + 1];
|
||||
@@ -236,6 +246,9 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
if (KEY_PREVIEW_MODE.equals(key)) {
|
||||
String newPreviewMode = (String) newValue;
|
||||
EhInfo.getInstance(getActivity()).setPreviewMode(newPreviewMode);
|
||||
} else if (KEY_HAH_PROXY.equals(key)) {
|
||||
boolean hahProxy = (Boolean) newValue;
|
||||
EhInfo.getInstance(getActivity()).setHAHProxy(hahProxy);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -273,9 +286,11 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
.setButtonListener(new MaterialAlertDialog.OnClickListener() {
|
||||
@Override
|
||||
public boolean onClick(MaterialAlertDialog dialog, int which) {
|
||||
int newValue = getExculdeTagGroup(tl);
|
||||
Config.setExculdeTagGroup(newValue);
|
||||
EhInfo.getInstance(getActivity()).setExculdeTagGroup(newValue);
|
||||
if (which == MaterialAlertDialog.POSITIVE) {
|
||||
int newValue = getExculdeTagGroup(tl);
|
||||
Config.setExculdeTagGroup(newValue);
|
||||
EhInfo.getInstance(getActivity()).setExculdeTagGroup(newValue);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}).show();
|
||||
@@ -289,9 +304,11 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
.setButtonListener(new MaterialAlertDialog.OnClickListener() {
|
||||
@Override
|
||||
public boolean onClick(MaterialAlertDialog dialog, int which) {
|
||||
String newValue = getExculdeLanguage(tl);
|
||||
Config.setExculdeLanguage(newValue);
|
||||
EhInfo.getInstance(getActivity()).setExculdeLanguage(newValue);
|
||||
if (which == MaterialAlertDialog.POSITIVE) {
|
||||
String newValue = getExculdeLanguage(tl);
|
||||
Config.setExculdeLanguage(newValue);
|
||||
EhInfo.getInstance(getActivity()).setExculdeLanguage(newValue);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}).show();
|
||||
@@ -300,6 +317,34 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
SearchRecentSuggestions suggestions = SuggestionHelper.getInstance(getActivity(),
|
||||
SimpleSuggestionProvider.AUTHORITY, SimpleSuggestionProvider.MODE);
|
||||
suggestions.clearHistory();
|
||||
|
||||
} else if (KEY_HAH_PROXY_CONFIG.equals(key)) {
|
||||
LinearLayout ll = (LinearLayout) ViewUtils.inflateDialogView(R.layout.hah_proxy_config, false);
|
||||
final EditText hahIp = (EditText) ll.findViewById(R.id.hah_ip);
|
||||
final EditText hahPort = (EditText) ll.findViewById(R.id.hah_port);
|
||||
final EditText hahPasskey = (EditText) ll.findViewById(R.id.hah_passkey);
|
||||
|
||||
hahIp.setText(Config.getHAHIp());
|
||||
hahPort.setText(Config.getHAHPort());
|
||||
hahPasskey.setText(Config.getHAHPasskey());
|
||||
|
||||
new MaterialAlertDialog.Builder(getActivity()).setTitle(R.string.hah_proxy_title)
|
||||
.setView(ll, true).setPositiveButton(android.R.string.ok).setNegativeButton(android.R.string.cancel)
|
||||
.setButtonListener(new MaterialAlertDialog.OnClickListener() {
|
||||
@Override
|
||||
public boolean onClick(MaterialAlertDialog dialog, int which) {
|
||||
if (which == MaterialAlertDialog.POSITIVE) {
|
||||
String ip = hahIp.getText().toString();
|
||||
String port = hahPort.getText().toString();
|
||||
String passkey = hahPasskey.getText().toString();
|
||||
Config.setHAHIp(ip);
|
||||
Config.setHAHPort(port);
|
||||
Config.setHAHPasskey(passkey);
|
||||
EhInfo.getInstance(getActivity()).setHAHProxy(ip, port, passkey);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -441,56 +486,71 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
public boolean onPreferenceClick(Preference preference) {
|
||||
final String key = preference.getKey();
|
||||
if (KEY_CLEAN_REDUNDANCY.equals(key)) {
|
||||
|
||||
// Create a thread to do clean task
|
||||
new BgThread() {
|
||||
@Override
|
||||
public void run() {
|
||||
Data data = Data.getInstance();
|
||||
List<DownloadInfo> diList = data.getAllDownloads();
|
||||
File downloadDir = new File(Config.getDownloadPath());
|
||||
String[] files = downloadDir.list();
|
||||
Handler handler = AppHandler.getInstance();
|
||||
List<File> targetDirList = new ArrayList<File>();
|
||||
|
||||
if (files == null) {
|
||||
// Check files null
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_NONE, 0, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
for (String filename : files) {
|
||||
// If in download list, just continue
|
||||
if (isInDownloadList(diList, filename))
|
||||
continue;
|
||||
File dir = new File(downloadDir, filename);
|
||||
// If there is no tag file, just continue
|
||||
if (!new File(dir, EhUtils.EH_DOWNLOAD_FILENAME).exists())
|
||||
continue;
|
||||
// Add to list
|
||||
targetDirList.add(dir);
|
||||
}
|
||||
|
||||
if (targetDirList.isEmpty()) {
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_NONE, 0, 0));
|
||||
return;
|
||||
} else {
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_START, 0, 0));
|
||||
}
|
||||
// Do delete
|
||||
for (int i = 0; i < targetDirList.size(); i++) {
|
||||
File dir = targetDirList.get(i);
|
||||
Utils.deleteFile(dir);
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_DOING, targetDirList.size(), i + 1));
|
||||
}
|
||||
// Close windows
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_DONE, targetDirList.size(), targetDirList
|
||||
.size()));
|
||||
}
|
||||
}.start();
|
||||
new MaterialAlertDialog.Builder(getActivity()).setTitle(R.string.warning)
|
||||
.setMessage(R.string.clean_redundancy_mesg)
|
||||
.setPositiveButton(R.string.are_you_sure_sure)
|
||||
.setNegativeButton(R.string.are_you_sure_no)
|
||||
.setButtonListener(new MaterialAlertDialog.OnClickListener() {
|
||||
@Override
|
||||
public boolean onClick(MaterialAlertDialog dialog, int which) {
|
||||
if (which == MaterialAlertDialog.POSITIVE) {
|
||||
cleanRedundancy();
|
||||
} return true;
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private void cleanRedundancy() {
|
||||
// Create a thread to do clean task
|
||||
new BgThread() {
|
||||
@Override
|
||||
public void run() {
|
||||
Data data = Data.getInstance();
|
||||
List<DownloadInfo> diList = data.getAllDownloads();
|
||||
File downloadDir = new File(Config.getDownloadPath());
|
||||
String[] files = downloadDir.list();
|
||||
Handler handler = AppHandler.getInstance();
|
||||
List<File> targetDirList = new ArrayList<File>();
|
||||
|
||||
if (files == null) {
|
||||
// Check files null
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_NONE, 0, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
for (String filename : files) {
|
||||
// If in download list, just continue
|
||||
if (isInDownloadList(diList, filename))
|
||||
continue;
|
||||
File dir = new File(downloadDir, filename);
|
||||
// If there is no tag file, just continue
|
||||
if (!new File(dir, EhUtils.EH_DOWNLOAD_FILENAME).exists())
|
||||
continue;
|
||||
// Add to list
|
||||
targetDirList.add(dir);
|
||||
}
|
||||
|
||||
if (targetDirList.isEmpty()) {
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_NONE, 0, 0));
|
||||
return;
|
||||
} else {
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_START, 0, 0));
|
||||
}
|
||||
// Do delete
|
||||
for (int i = 0; i < targetDirList.size(); i++) {
|
||||
File dir = targetDirList.get(i);
|
||||
Utils.deleteFile(dir);
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_DOING, targetDirList.size(), i + 1));
|
||||
}
|
||||
// Close windows
|
||||
handler.post(new CleanResponder(CleanResponder.STATE_DONE, targetDirList.size(), targetDirList
|
||||
.size()));
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
}
|
||||
|
||||
public static class DownloadFragment extends PreferenceFragment implements
|
||||
@@ -805,10 +865,8 @@ public class SettingsActivity extends AbsPreferenceActivity {
|
||||
}
|
||||
|
||||
} else if (KEY_AUTHOR.equals(key)) {
|
||||
Intent i = new Intent(Intent.ACTION_SENDTO);
|
||||
i.setData(Uri.parse("mailto:ehviewersu@gmail.com"));
|
||||
i.putExtra(Intent.EXTRA_SUBJECT, "About EhViewer");
|
||||
startActivity(i);
|
||||
AppUtils.sendEmail(getActivity(), "ehviewersu@gmail.com",
|
||||
"About EhViewer", null);
|
||||
|
||||
} else if (KEY_TWITTER.equals(key)) {
|
||||
new MaterialAlertDialog.Builder(getActivity())
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Hippo Seven
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.hippo.ehviewer.ui;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.Bundle;
|
||||
import android.webkit.CookieManager;
|
||||
import android.webkit.WebView;
|
||||
@@ -14,12 +31,13 @@ public class WebViewLoginActivity extends AbsActivity {
|
||||
|
||||
public static final String KEY_ERROR = "error";
|
||||
|
||||
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
CookieManager.getInstance().removeAllCookie();
|
||||
WebView wv = new WebView(this);
|
||||
wv.getSettings().setJavaScriptEnabled(true);
|
||||
wv.setWebViewClient(new LoginWebViewClient());
|
||||
wv.loadUrl(EhClient.LOGIN_URL);
|
||||
setContentView(wv);
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Hippo Seven
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.hippo.ehviewer.util;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
|
||||
public final class AppUtils {
|
||||
|
||||
// TODO add common error tip
|
||||
public static void sendEmail(@NonNull Activity from, @NonNull String email,
|
||||
@Nullable String subject, @Nullable String text) {
|
||||
Intent i = new Intent(Intent.ACTION_SENDTO);
|
||||
i.setData(Uri.parse("mailto:" + email));
|
||||
if (subject != null) {
|
||||
i.putExtra(Intent.EXTRA_SUBJECT, subject);
|
||||
}
|
||||
if (text != null) {
|
||||
i.putExtra(Intent.EXTRA_TEXT, text);
|
||||
}
|
||||
|
||||
try {
|
||||
from.startActivity(i);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,6 @@ public final class Config {
|
||||
|
||||
private static boolean mInit = false;
|
||||
|
||||
private static Context mContext;
|
||||
private static SharedPreferences mConfigPre;
|
||||
|
||||
/**
|
||||
@@ -54,8 +53,7 @@ public final class Config {
|
||||
return;
|
||||
mInit = true;
|
||||
|
||||
mContext = context;
|
||||
mConfigPre = PreferenceManager.getDefaultSharedPreferences(mContext);
|
||||
mConfigPre = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
||||
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
|
||||
sExternalDir = new File(Environment.getExternalStorageDirectory(), EXTERANL_DIR_NAME);
|
||||
@@ -253,6 +251,18 @@ public final class Config {
|
||||
private static final String KEY_MAX_HISTORY_COUNT = "max_history_count";
|
||||
private static final int DEFAULT_MAX_HISTORY_COUNT = 100;
|
||||
|
||||
private static final String KEY_HAH_PROXY = "hah_proxy";
|
||||
private static final boolean DEFAULT_HAH_PROXY = false;
|
||||
|
||||
private static final String KEY_HAH_IP = "hah_ip";
|
||||
private static final String DEFAULT_HAH_IP = "";
|
||||
|
||||
private static final String KEY_HAH_PORT = "hah_port";
|
||||
private static final String DEFAULT_HAH_PORT = "";
|
||||
|
||||
private static final String KEY_HAH_PASSKEY = "hah_passkey";
|
||||
private static final String DEFAULT_HAH_PASSKEY = "";
|
||||
|
||||
public static int getDefaultCat() {
|
||||
return getInt(KEY_DEFAULT_CAT, DEFAULT_DEFAULT_CAT);
|
||||
}
|
||||
@@ -293,6 +303,34 @@ public final class Config {
|
||||
return getIntFromStr(KEY_MAX_HISTORY_COUNT, DEFAULT_MAX_HISTORY_COUNT);
|
||||
}
|
||||
|
||||
public static boolean getHAHProxy() {
|
||||
return getBoolean(KEY_HAH_PROXY, DEFAULT_HAH_PROXY);
|
||||
}
|
||||
|
||||
public static void setHAHIp(String hahIp) {
|
||||
setString(KEY_HAH_IP, hahIp);
|
||||
}
|
||||
|
||||
public static String getHAHIp() {
|
||||
return getString(KEY_HAH_IP, DEFAULT_HAH_IP);
|
||||
}
|
||||
|
||||
public static void setHAHPort(String hahPort) {
|
||||
setString(KEY_HAH_PORT, hahPort);
|
||||
}
|
||||
|
||||
public static String getHAHPort() {
|
||||
return getString(KEY_HAH_PORT, DEFAULT_HAH_PORT);
|
||||
}
|
||||
|
||||
public static void setHAHPasskey(String hahPasskey) {
|
||||
setString(KEY_HAH_PASSKEY, hahPasskey);
|
||||
}
|
||||
|
||||
public static String getHAHPasskey() {
|
||||
return getString(KEY_HAH_PASSKEY, DEFAULT_HAH_PASSKEY);
|
||||
}
|
||||
|
||||
|
||||
/****** Read ******/
|
||||
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 Hippo Seven
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2.5"
|
||||
android:text="@string/hah_ip"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=" "/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/hah_port"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/hah_ip"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2.5"
|
||||
android:singleLine="true"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=":"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/hah_port"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:singleLine="true"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hah_passkey"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/hah_passkey"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,3 +1,20 @@
|
||||
Version 0.6.14 (2014-3-27)
|
||||
* 添加 H@H 代理支持
|
||||
* 修正在早期 KitKat 系统上出现的崩溃
|
||||
* 修正某些解析失败
|
||||
|
||||
Version 0.6.13.2 (2014-3-22)
|
||||
* 修正评论解析错误
|
||||
* 修正发送邮件时可能出现的崩溃
|
||||
|
||||
Version 0.6.13.1 (2014-3-22)
|
||||
* 再次修正解析错误
|
||||
|
||||
Version 0.6.13 (2014-3-22)
|
||||
* 修正解析错误
|
||||
* 修正图标解析度错误
|
||||
* 调整缓存机制
|
||||
|
||||
Version 0.6.12 (2014-3-9)
|
||||
* 添加通过 WebView 登录
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<resources>
|
||||
|
||||
<!-- Application theme. -->
|
||||
<style name="AppTheme" parent="@android:Theme.Material.Light.DarkActionBar">
|
||||
<style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
|
||||
<item name="themeColor">@color/theme</item>
|
||||
<!-- Text -->
|
||||
<item name="textColor">@color/primary_text_dark</item>
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Dark" parent="@android:Theme.Material">
|
||||
<style name="AppTheme.Dark" parent="android:Theme.Material">
|
||||
<item name="themeColor">@color/theme_dark</item>
|
||||
<!-- Text -->
|
||||
<item name="textColor">@color/primary_text_light</item>
|
||||
@@ -72,4 +72,4 @@
|
||||
<item name="android:colorControlNormal">?attr/textColorHint</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -223,6 +223,11 @@
|
||||
<string name="default_favorite">默认收藏夹</string>
|
||||
<string name="history_eh_settings_title">历史</string>
|
||||
<string name="max_history_count_title">最大历史记录条数</string>
|
||||
<string name="hah_proxy_title">H@H 服务器</string>
|
||||
<string name="hah_proxy_config_title">H@H 服务器设置</string>
|
||||
<string name="hah_ip">IP 地址</string>
|
||||
<string name="hah_port">端口</string>
|
||||
<string name="hah_passkey">密钥(可选)</string>
|
||||
|
||||
<string name="read_settings_title">阅读</string>
|
||||
<string name="reading_direction_title">开页方向</string>
|
||||
@@ -241,6 +246,7 @@
|
||||
<string name="custom_codec_summary">自定义解码可能会更使用更少内存,解码更快</string>
|
||||
<string name="custom_codec_summary_not">自定义解码暂不支持 x86, mips</string>
|
||||
<string name="clean_redundancy_title">清理阅读冗余</string>
|
||||
<string name="clean_redundancy_mesg">你确定要清理阅读冗余吗?不在下载列表中的画廊图片文件将被删除。</string>
|
||||
<string name="no_redundancy">未发现冗余</string>
|
||||
<string name="clean_redundancy">完成冗余清理,共清理 %d 项</string>
|
||||
<string name="decode_format_title">解码格式</string>
|
||||
@@ -374,6 +380,10 @@
|
||||
|
||||
<string name="photo_footnotes">Hippo 摄于成都大熊猫繁育研究基地</string>
|
||||
|
||||
<!-- Dialog sure -->
|
||||
<string name="are_you_sure_no">算了</string>
|
||||
<string name="are_you_sure_sure">确定</string>
|
||||
|
||||
<!-- Utils -->
|
||||
<string name="share">分享</string>
|
||||
<string name="filter">过滤</string>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<!-- Analyics -->
|
||||
<string name="dailog_analyics_title">數據統計</string>
|
||||
<string name="dailog_analyics_plain">您是否願意將使用情況發送給開發者?這對開發者維護該應用有很大幫助。在發送使用情況的同時也會發送部分設備信息(譬如設備型號、系統版本、當前IP地址)(注意:某些設備信息可能可以推測出某些用戶信息,譬如當前IP地址可能可以大概推測出用戶當前的位置)。開發者承諾不收集任何個人身份信息數據(譬如姓名、電話號碼、電郵地址)或可永久性標識某臺設備的數據(譬如IMEI、MAC地址)。\n\n數據收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies\n\n您以後可以在設置中修改選擇</string>
|
||||
<string name="dailog_analyics_plain">您是否願意將使用情況發送給開發者?這對開發者維護該應用有很大幫助。在發送使用情況的同時也會發送部分設備信息(譬如設備型號、系統版本、當前IP地址)(注意:某些設備信息可能可以推測出某些用户信息,譬如當前IP地址可能可以大概推測出用户當前的位置)。開發者承諾不收集任何個人身份信息數據(譬如姓名、電話號碼、電郵地址)或可永久性標識某台設備的數據(譬如IMEI、MAC地址)。\n\n數據收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies\n\n您以後可以在設置中修改選擇</string>
|
||||
|
||||
<!-- Network -->
|
||||
<string name="dailog_network_mobile_title">您正在使用移動網絡,可能會消耗大量的資費,是否繼續使用?</string>
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
<!-- Send Crash -->
|
||||
<string name="dialog_send_crash_title">這很重要</string>
|
||||
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把錯誤日誌發送給開發者以便以後得到更好的用戶體驗麼?(以電子郵件的形式發送)</string>
|
||||
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把錯誤日誌發送給開發者以便以後得到更好的用户體驗麼?(以電子郵件的形式發送)</string>
|
||||
<string name="add_description">你可以在下方添加一些信息,譬如應用崩潰前所作的操作。</string>
|
||||
<string name="dialog_wait_send_crash_msg">請在發送完日誌後關閉該窗口</string>
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
<string name="delete_item">該下載項將被刪除</string>
|
||||
<string name="pic_included">包括圖片</string>
|
||||
<string name="notification_be_title">下載配額不足</string>
|
||||
<string name="notification_be_mesg">錯誤碼 509,請稍後閱讀或完成下載</string>
|
||||
<string name="notification_be_mesg">錯誤碼 509,請稍後閲讀或完成下載</string>
|
||||
|
||||
<!-- ErrorMessage -->
|
||||
<string name="em_network_error">網絡錯誤</string>
|
||||
@@ -109,8 +109,8 @@
|
||||
<string name="em_client_protocol">無效的請求或無效的響應</string>
|
||||
<string name="em_put_cache_error">存入緩存錯誤</string>
|
||||
<string name="em_url_format_error">網址錯誤</string>
|
||||
<string name="em_login_error">用戶名或密碼錯誤</string>
|
||||
<string name="em_check_login_error">獲取用戶信息錯誤</string>
|
||||
<string name="em_login_error">用户名或密碼錯誤</string>
|
||||
<string name="em_check_login_error">獲取用户信息錯誤</string>
|
||||
<string name="em_logout_error">退出錯誤</string>
|
||||
<string name="em_url_error">網址錯誤</string>
|
||||
<string name="em_retry">重試</string>
|
||||
@@ -128,7 +128,7 @@
|
||||
<string name="em_invalid_request">無效的請求</string>
|
||||
<string name="em_no_sdcard">未掛載 SD卡</string>
|
||||
<string name="em_index_error">索引錯誤</string>
|
||||
<string name="em_requst_null">請求內容爲空</string>
|
||||
<string name="em_requst_null">請求內容為空</string>
|
||||
|
||||
<!-- GalleryActivity -->
|
||||
<string name="ga_data_error">數據錯誤!</string>
|
||||
@@ -163,7 +163,7 @@
|
||||
<string name="dst_src_same">目標與源相同</string>
|
||||
<string name="delete_successfully">刪除成功</string>
|
||||
<string name="failed_to_delete">刪除失敗</string>
|
||||
<string name="set_default_favorite">設爲默認收藏夾</string>
|
||||
<string name="set_default_favorite">設為默認收藏夾</string>
|
||||
<string name="favorite_warning">未檢測到登陸狀態,賬號收藏可被他人修改。而且由於開發者水平問題,本地收藏不可靠。</string>
|
||||
|
||||
<!-- Popular -->
|
||||
@@ -172,7 +172,7 @@
|
||||
<!-- History -->
|
||||
<string name="clear_history_message">所有歷史記錄將被清除</string>
|
||||
<string name="just_browse">僅瀏覽過</string>
|
||||
<string name="have_read">已閱讀過</string>
|
||||
<string name="have_read">已閲讀過</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="display_settings_title">顯示</string>
|
||||
@@ -211,8 +211,13 @@
|
||||
<string name="default_favorite">默認收藏夾</string>
|
||||
<string name="history_eh_settings_title">歷史</string>
|
||||
<string name="max_history_count_title">最大歷史記錄條數</string>
|
||||
<string name="hah_proxy_title">H@H 服務器</string>
|
||||
<string name="hah_proxy_config_title">H@H 服務器設置</string>
|
||||
<string name="hah_ip">IP 地址</string>
|
||||
<string name="hah_port">端口</string>
|
||||
<string name="hah_passkey">密鑰(可選)</string>
|
||||
|
||||
<string name="read_settings_title">閱讀</string>
|
||||
<string name="read_settings_title">閲讀</string>
|
||||
<string name="reading_direction_title">開頁方向</string>
|
||||
<string name="left_to_right">從左至右</string>
|
||||
<string name="right_to_Left">從右至左</string>
|
||||
@@ -220,17 +225,18 @@
|
||||
<string name="bottom_to_top">從下至上</string>
|
||||
<string name="page_scaling_title">頁面縮放</string>
|
||||
<string name="start_position_title">開頁位置</string>
|
||||
<string name="keep_screen_on_title">閱讀時屏幕常亮</string>
|
||||
<string name="keep_screen_on_title">閲讀時屏幕常亮</string>
|
||||
<string name="gallery_show_clock_title">顯示時間</string>
|
||||
<string name="gallery_show_battery_title">顯示電量</string>
|
||||
<string name="custom_lightness_title">閱讀時使用自定義屏幕亮度</string>
|
||||
<string name="custom_lightness_title">閲讀時使用自定義屏幕亮度</string>
|
||||
<string name="custom_lightness_value_title">自定義屏幕亮度</string>
|
||||
<string name="custom_codec_title">自定義解碼</string>
|
||||
<string name="custom_codec_summary">自定義解碼可能會更使用更少內存,解碼更快</string>
|
||||
<string name="custom_codec_summary_not">自定義解碼暫不支持 x86, mips</string>
|
||||
<string name="clean_redundancy_title">清理閱讀冗餘</string>
|
||||
<string name="no_redundancy">未發現冗餘</string>
|
||||
<string name="clean_redundancy">完成冗餘清理,共清理 %d 項</string>
|
||||
<string name="clean_redundancy_title">清理閲讀宂餘</string>
|
||||
<string name="clean_redundancy_mesg">你確定要清理閲讀宂餘嗎?不在下載列表中的畫廊圖片文件文件將被刪除。</string>
|
||||
<string name="no_redundancy">未發現宂餘</string>
|
||||
<string name="clean_redundancy">完成宂餘清理,共清理 %d 項</string>
|
||||
<string name="decode_format_title">解碼格式</string>
|
||||
<string name="decode_format_auto">自動</string>
|
||||
<string name="decode_format_gray">黑白</string>
|
||||
@@ -247,8 +253,8 @@
|
||||
<string name="download_origin_image_title">下載原圖</string>
|
||||
<string name="download_origin_image_summary">這很危險!勾選此項會導致下載配額迅速流失</string>
|
||||
<string name="keep_download_service_title">保持下載服務</string>
|
||||
<string name="keep_download_service_summary_on">下載時,若應用被系統或用戶強制關閉,下載服務會重新啓動</string>
|
||||
<string name="keep_download_service_summary_off">下載時,若應用被系統或用戶強制關閉,下載服務不會重新啓動</string>
|
||||
<string name="keep_download_service_summary_on">下載時,若應用被系統或用户強制關閉,下載服務會重新啟動</string>
|
||||
<string name="keep_download_service_summary_off">下載時,若應用被系統或用户強制關閉,下載服務不會重新啟動</string>
|
||||
|
||||
<string name="advanced_settings_title">高級</string>
|
||||
<string name="http_advanced_settings_title">HTTP</string>
|
||||
@@ -260,7 +266,7 @@
|
||||
<string name="eh_min_interval_title">EH 站點最小連接間隔 (ms)</string>
|
||||
<string name="eh_others_settings_title">其他</string>
|
||||
<string name="fix_dirname_title">修正下載文件夾名</string>
|
||||
<string name="fix_dirname_title_summary">將下載文件夾名由 gid 改爲 gid-title,不進行修正不會影響使用</string>
|
||||
<string name="fix_dirname_title_summary">將下載文件夾名由 gid 改為 gid-title,不進行修正不會影響使用</string>
|
||||
<string name="start_fixing">開始修正</string>
|
||||
<string name="no_need_fixing">未發現可修正項</string>
|
||||
<string name="fixing_over">共修正 %d 項</string>
|
||||
@@ -276,18 +282,18 @@
|
||||
<string name="version_title">應用版本</string>
|
||||
<string name="update_about_settings_title">更新</string>
|
||||
<string name="auto_check_for_update_title">自動檢查更新</string>
|
||||
<string name="auto_check_for_update_summary_on">每日第一次啓動時檢查更新</string>
|
||||
<string name="auto_check_for_update_summary_on">每日第一次啟動時檢查更新</string>
|
||||
<string name="auto_check_for_update_summary_off">從不自動檢查更新</string>
|
||||
<string name="check_for_update_title">檢查更新</string>
|
||||
<string name="check_for_update_summary">點擊檢查更新</string>
|
||||
<string name="update_server_title">更新服務器</string>
|
||||
<string name="cloud_drive_title">如果更新失敗點擊此處</string>
|
||||
<string name="analytics_about_settings_title">數據統計</string>
|
||||
<string name="allow_analyics_title">啓用數據統計</string>
|
||||
<string name="allow_analyics_title">啟用數據統計</string>
|
||||
<string name="allow_analyics_summary_on">感謝您對本應用的支持</string>
|
||||
<string name="allow_analyics_summary_off">感謝您使用本應用</string>
|
||||
<string name="about_analyics_title">關於數據統計</string>
|
||||
<string name="about_analyics_comment">若您啓用了數據統計,本應用會將您的使用情況發送給開發者。這對開發者維護該應用有很大幫助。在發送使用情況的同時也會發送部分設備信息(譬如設備型號、系統版本、當前IP地址)(注意:某些設備信息可能可以推測出某些用戶信息,譬如當前IP地址可能可以大概推測出用戶當前的位置)。開發者承諾不收集任何個人身份信息數據(譬如姓名、電話號碼、電郵地址)或可永久性標識某臺設備的數據(譬如IMEI、MAC地址)。\n\n數據收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies</string>
|
||||
<string name="about_analyics_comment">若您啟用了數據統計,本應用會將您的使用情況發送給開發者。這對開發者維護該應用有很大幫助。在發送使用情況的同時也會發送部分設備信息(譬如設備型號、系統版本、當前IP地址)(注意:某些設備信息可能可以推測出某些用户信息,譬如當前IP地址可能可以大概推測出用户當前的位置)。開發者承諾不收集任何個人身份信息數據(譬如姓名、電話號碼、電郵地址)或可永久性標識某台設備的數據(譬如IMEI、MAC地址)。\n\n數據收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies</string>
|
||||
<string name="portrait">豎屏</string>
|
||||
<string name="landscape">橫屏</string>
|
||||
<string name="preference_settings_title">設置</string>
|
||||
@@ -323,8 +329,8 @@
|
||||
|
||||
<!-- Tag -->
|
||||
<string name="add_tag">添加標籤</string>
|
||||
<string name="tag_name">標簽名稱:</string>
|
||||
<string name="tag_name_empty">標簽名稱不能爲空</string>
|
||||
<string name="tag_name">標籤名稱:</string>
|
||||
<string name="tag_name_empty">標籤名稱不能為空</string>
|
||||
<string name="tag_change_name">修改名稱</string>
|
||||
<string name="new_tag_name">新名稱:%s</string>
|
||||
|
||||
@@ -345,7 +351,7 @@
|
||||
<string name="rate_succeeded">評分成功</string>
|
||||
<string name="rate_sensibly">理智評分</string>
|
||||
<string name="rate_failed">評分失敗</string>
|
||||
<string name="gallery_of_he">該用戶上傳的內容</string>
|
||||
<string name="gallery_of_he">該用户上傳的內容</string>
|
||||
|
||||
<!-- rating -->
|
||||
<string name="rating10">根本把持不住</string>
|
||||
@@ -362,6 +368,10 @@
|
||||
|
||||
<string name="photo_footnotes">Hippo 攝於成都大熊貓繁育研究基地</string>
|
||||
|
||||
<!-- Dialog sure -->
|
||||
<string name="are_you_sure_no">算了</string>
|
||||
<string name="are_you_sure_sure">確定</string>
|
||||
|
||||
<!-- Utils -->
|
||||
<string name="share">分享</string>
|
||||
<string name="filter">過濾</string>
|
||||
@@ -377,7 +387,7 @@
|
||||
<string name="pages">頁面</string>
|
||||
<string name="size">大小</string>
|
||||
<string name="tip">提示</string>
|
||||
<string name="not_started">未啓動</string>
|
||||
<string name="not_started">未啟動</string>
|
||||
<string name="waiting">等待中</string>
|
||||
<string name="done">已完成</string>
|
||||
<string name="first_page">第一頁</string>
|
||||
@@ -398,7 +408,7 @@
|
||||
<string name="comment">評論</string>
|
||||
<string name="info">信息</string>
|
||||
<string name="reply">回覆</string>
|
||||
<string name="read">閱讀</string>
|
||||
<string name="read">閲讀</string>
|
||||
<string name="rate">評價</string>
|
||||
<string name="last_page">最後一頁</string>
|
||||
<string name="unfinished">未完成的功能</string>
|
||||
@@ -410,7 +420,7 @@
|
||||
<string name="login">登陸</string>
|
||||
<string name="logout">退出</string>
|
||||
<string name="wait">請稍後</string>
|
||||
<string name="username">用戶名</string>
|
||||
<string name="username">用户名</string>
|
||||
<string name="password">密碼</string>
|
||||
<string name="add">添加</string>
|
||||
<string name="what_to_do">你想做什麼?</string>
|
||||
@@ -447,7 +457,7 @@
|
||||
<string name="thanks">感謝</string>
|
||||
<string name="develop">開發</string>
|
||||
<string name="advance_search_left">左劃更多</string>
|
||||
<string name="restart_to_take_effect">重啓應用以便生效</string>
|
||||
<string name="restart_to_take_effect">重啟應用以便生效</string>
|
||||
<string name="cur_dir_not_writable">當前文件夾不可寫</string>
|
||||
|
||||
</resources>
|
||||
@@ -10,10 +10,10 @@
|
||||
|
||||
<!-- Analyics -->
|
||||
<string name="dailog_analyics_title">資料統計</string>
|
||||
<string name="dailog_analyics_plain">您是否願意將使用情況發送給開發者?這對開發者維護該應用有很大幫助。在發送使用情況的同時也會發送部分裝置資訊(譬如裝置型號、系統版本、當前IP地址)(注意:某些裝置資訊可能可以推測出某些使用者資訊,譬如當前IP地址可能可以大概推測出使用者當前的位置)。開發者承諾不收集任何個人身份資訊資料(譬如姓名、電話號碼、電郵地址)或可永久性標識某臺裝置的資料(譬如IMEI、MAC地址)。\n\n資料收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies\n\n您以後可以在設定中修改選擇</string>
|
||||
<string name="dailog_analyics_plain">您是否願意將使用情況傳送給開發者?這對開發者維護該應用有很大幫助。在傳送使用情況的同時也會發送部分裝置資訊(譬如裝置型號、系統版本、當前IP地址)(注意:某些裝置資訊可能可以推測出某些使用者資訊,譬如當前IP地址可能可以大概推測出使用者當前的位置)。開發者承諾不收集任何個人身份資訊資料(譬如姓名、電話號碼、電郵地址)或可永久性標識某臺裝置的資料(譬如IMEI、MAC地址)。\n\n資料收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies\n\n您以後可以在設定中修改選擇</string>
|
||||
|
||||
<!-- Network -->
|
||||
<string name="dailog_network_mobile_title">您正在使用移動網路,可能會消耗大量的資費,是否繼續使用?</string>
|
||||
<string name="dailog_network_mobile_title">您正在使用行動網路,可能會消耗大量的資費,是否繼續使用?</string>
|
||||
<string name="dailog_network_none_title">未檢測到網路連線,是否繼續使用?</string>
|
||||
|
||||
<!-- Exit -->
|
||||
@@ -27,17 +27,17 @@
|
||||
<string name="hint_no_keyword">沒關鍵字也行</string>
|
||||
<string name="checkbox_uploader">指定上傳者</string>
|
||||
<string name="checkbox_advance">高階選項</string>
|
||||
<string name="checkbox_sname">搜索本子</string>
|
||||
<string name="checkbox_stags">搜索本子標籤</string>
|
||||
<string name="checkbox_sdesc">搜索本子描述</string>
|
||||
<string name="checkbox_storr">搜索種子檔名</string>
|
||||
<string name="checkbox_sto">僅搜索有種子的本子</string>
|
||||
<string name="checkbox_sdt1">搜索 Low-Power 標籤</string>
|
||||
<string name="checkbox_sdt2">搜索差評標籤</string>
|
||||
<string name="checkbox_sh">搜索被遺棄的資源</string>
|
||||
<string name="checkbox_sname">搜尋本子</string>
|
||||
<string name="checkbox_stags">搜尋本子標籤</string>
|
||||
<string name="checkbox_sdesc">搜尋本子描述</string>
|
||||
<string name="checkbox_storr">搜尋種子檔名</string>
|
||||
<string name="checkbox_sto">僅搜尋有種子的本子</string>
|
||||
<string name="checkbox_sdt1">搜尋 Low-Power 標籤</string>
|
||||
<string name="checkbox_sdt2">搜尋差評標籤</string>
|
||||
<string name="checkbox_sh">搜尋被遺棄的資源</string>
|
||||
<string name="checkbox_sr">最低評分:</string>
|
||||
<string name="use_similarity_scan">使用相似搜索</string>
|
||||
<string name="only_search_covers">只搜索封面</string>
|
||||
<string name="use_similarity_scan">使用相似搜尋</string>
|
||||
<string name="only_search_covers">只搜尋封面</string>
|
||||
<string name="show_expunged">顯示被遺棄的資源</string>
|
||||
|
||||
<!-- Jump -->
|
||||
@@ -47,21 +47,21 @@
|
||||
|
||||
<!-- Send Crash -->
|
||||
<string name="dialog_send_crash_title">這很重要</string>
|
||||
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把錯誤日誌發送給開發者以便以後得到更好的使用者體驗麼?(以電子郵件的形式發送)</string>
|
||||
<string name="add_description">你可以在下方添加一些資訊,譬如應用崩潰前所作的操作。</string>
|
||||
<string name="dialog_wait_send_crash_msg">請在發送完日誌後關閉該視窗</string>
|
||||
<string name="dialog_send_crash_plain">上次該應用崩潰了。你願意把錯誤日誌傳送給開發者以便以後得到更好的使用者體驗麼?(以電子郵件的形式傳送)</string>
|
||||
<string name="add_description">你可以在下方新增一些資訊,譬如應用崩潰前所作的操作。</string>
|
||||
<string name="dialog_wait_send_crash_msg">請在傳送完日誌後關閉該視窗</string>
|
||||
|
||||
<!-- List item long click -->
|
||||
<string name="toast_add_favourite">已添加到收藏</string>
|
||||
<string name="toast_add_download">已添加到下載列表</string>
|
||||
<string name="toast_add_favourite">已新增到收藏</string>
|
||||
<string name="toast_add_download">已新增到下載列表</string>
|
||||
|
||||
<!-- GalleryListActivity -->
|
||||
<string name="no_found">未找到</string>
|
||||
<string name="none">無</string>
|
||||
<string name="quick_search_tip">您可以在左側欄搜索項中添加快速搜索</string>
|
||||
<string name="quick_search_tip">您可以在左側欄搜尋項中新增快速搜尋</string>
|
||||
<string name="no_avatar">無頭像</string>
|
||||
<string name="get_avatar_error">獲取頭像失敗</string>
|
||||
<string name="image_search">影象搜索</string>
|
||||
<string name="image_search">影象搜尋</string>
|
||||
<string name="image_not_exist">影象不存在</string>
|
||||
<string name="image_not_readable">影象不可讀</string>
|
||||
|
||||
@@ -154,8 +154,8 @@
|
||||
<!-- Favorite -->
|
||||
<string name="local_favorite">本地收藏</string>
|
||||
<string name="select_item">選擇項目</string>
|
||||
<string name="where_to_add">添加至何處?</string>
|
||||
<string name="failed_to_add">添加失敗</string>
|
||||
<string name="where_to_add">新增至何處?</string>
|
||||
<string name="failed_to_add">新增失敗</string>
|
||||
<string name="where_to_move">移動至何處?</string>
|
||||
<string name="moving">正在移動…</string>
|
||||
<string name="move_successful">移動成功</string>
|
||||
@@ -163,7 +163,7 @@
|
||||
<string name="dst_src_same">目標與源相同</string>
|
||||
<string name="delete_successfully">刪除成功</string>
|
||||
<string name="failed_to_delete">刪除失敗</string>
|
||||
<string name="set_default_favorite">設為默認收藏夾</string>
|
||||
<string name="set_default_favorite">設為預設收藏夾</string>
|
||||
<string name="favorite_warning">未檢測到登陸狀態,賬號收藏可被他人修改。而且由於開發者水平問題,本地收藏不可靠。</string>
|
||||
|
||||
<!-- Popular -->
|
||||
@@ -179,7 +179,7 @@
|
||||
<string name="theme_display_settings_title">主題</string>
|
||||
<string name="custom_theme_color_title">自定義主題顏色</string>
|
||||
<string name="custom_theme_color_summary_on">在下方指定主題顏色</string>
|
||||
<string name="custom_theme_color_summary_off">使用默認主題顏色</string>
|
||||
<string name="custom_theme_color_summary_off">使用預設主題顏色</string>
|
||||
<string name="theme_color_title">主題顏色</string>
|
||||
<string name="screen_display_settings_title">螢幕</string>
|
||||
<string name="screen_orientation_title">螢幕方向</string>
|
||||
@@ -194,23 +194,28 @@
|
||||
|
||||
<string name="eh_settings_title">EH</string>
|
||||
<string name="list_eh_settings_title">列表</string>
|
||||
<string name="list_default_category_title">列表默認分類</string>
|
||||
<string name="list_default_category_summary">首頁顯示的默認分類</string>
|
||||
<string name="list_default_category_title">列表預設分類</string>
|
||||
<string name="list_default_category_summary">首頁顯示的預設分類</string>
|
||||
<string name="exculde_tag_group_title">排除標籤類別</string>
|
||||
<string name="exculde_tag_group_summary">在標籤搜索中排除特定標籤類別</string>
|
||||
<string name="exculde_tag_group_summary">在標籤搜尋中排除特定標籤類別</string>
|
||||
<string name="exculde_language_title">排除語言</string>
|
||||
<string name="exculde_language_summary">在列表與搜索中排除特定語言</string>
|
||||
<string name="search_eh_settings_title">搜索</string>
|
||||
<string name="clear_suggestions_title">清除搜索記錄</string>
|
||||
<string name="clear_suggestions_summary">刪除您已執行的所有搜索</string>
|
||||
<string name="exculde_language_summary">在列表與搜尋中排除特定語言</string>
|
||||
<string name="search_eh_settings_title">搜尋</string>
|
||||
<string name="clear_suggestions_title">清除搜尋記錄</string>
|
||||
<string name="clear_suggestions_summary">刪除您已執行的所有搜尋</string>
|
||||
<string name="detail_eh_settings_title">詳情</string>
|
||||
<string name="preview_mode_title">預覽圖模式</string>
|
||||
<string name="preview_mode_normal">正常預覽圖</string>
|
||||
<string name="preview_mode_large">大預覽圖</string>
|
||||
<string name="favorite_eh_settings_title">收藏</string>
|
||||
<string name="default_favorite">默認收藏夾</string>
|
||||
<string name="default_favorite">預設收藏夾</string>
|
||||
<string name="history_eh_settings_title">歷史</string>
|
||||
<string name="max_history_count_title">最大歷史記錄條數</string>
|
||||
<string name="hah_proxy_title">H@H 伺服器</string>
|
||||
<string name="hah_proxy_config_title">H@H 伺服器設定</string>
|
||||
<string name="hah_ip">IP 地址</string>
|
||||
<string name="hah_port">埠</string>
|
||||
<string name="hah_passkey">金鑰(可選)</string>
|
||||
|
||||
<string name="read_settings_title">閱讀</string>
|
||||
<string name="reading_direction_title">開頁方向</string>
|
||||
@@ -226,9 +231,10 @@
|
||||
<string name="custom_lightness_title">閱讀時使用自定義螢幕亮度</string>
|
||||
<string name="custom_lightness_value_title">自定義螢幕亮度</string>
|
||||
<string name="custom_codec_title">自定義解碼</string>
|
||||
<string name="custom_codec_summary">自定義解碼可能會更使用更少內存,解碼更快</string>
|
||||
<string name="custom_codec_summary">自定義解碼可能會更使用更少記憶體,解碼更快</string>
|
||||
<string name="custom_codec_summary_not">自定義解碼暫不支援 x86, mips</string>
|
||||
<string name="clean_redundancy_title">清理閱讀冗餘</string>
|
||||
<string name="clean_redundancy_mesg">你確定要清理閱讀冗餘嗎?不在下載列表中的畫廊圖片檔案檔案將被刪除。</string>
|
||||
<string name="no_redundancy">未發現冗餘</string>
|
||||
<string name="clean_redundancy">完成冗餘清理,共清理 %d 項</string>
|
||||
<string name="decode_format_title">解碼格式</string>
|
||||
@@ -241,8 +247,8 @@
|
||||
<string name="download_settings_title">下載</string>
|
||||
<string name="download_path_title">下載路徑</string>
|
||||
<string name="media_scan_title">允許媒體掃描</string>
|
||||
<string name="media_scan_summary_on">請避免他人翻看你的圖庫應用</string>
|
||||
<string name="media_scan_summary_off">大多數圖庫應用將不會顯示下載目錄中的圖片</string>
|
||||
<string name="media_scan_summary_on">請避免他人翻看你的相簿應用</string>
|
||||
<string name="media_scan_summary_off">大多數相簿應用將不會顯示下載目錄中的圖片</string>
|
||||
<string name="download_thread_title">下載執行緒數</string>
|
||||
<string name="download_origin_image_title">下載原圖</string>
|
||||
<string name="download_origin_image_summary">這很危險!勾選此項會導致下載配額迅速流失</string>
|
||||
@@ -287,7 +293,7 @@
|
||||
<string name="allow_analyics_summary_on">感謝您對本應用的支援</string>
|
||||
<string name="allow_analyics_summary_off">感謝您使用本應用</string>
|
||||
<string name="about_analyics_title">關於資料統計</string>
|
||||
<string name="about_analyics_comment">若您啟用了資料統計,本應用會將您的使用情況發送給開發者。這對開發者維護該應用有很大幫助。在發送使用情況的同時也會發送部分裝置資訊(譬如裝置型號、系統版本、當前IP地址)(注意:某些裝置資訊可能可以推測出某些使用者資訊,譬如當前IP地址可能可以大概推測出使用者當前的位置)。開發者承諾不收集任何個人身份資訊資料(譬如姓名、電話號碼、電郵地址)或可永久性標識某臺裝置的資料(譬如IMEI、MAC地址)。\n\n資料收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies</string>
|
||||
<string name="about_analyics_comment">若您啟用了資料統計,本應用會將您的使用情況傳送給開發者。這對開發者維護該應用有很大幫助。在傳送使用情況的同時也會發送部分裝置資訊(譬如裝置型號、系統版本、當前IP地址)(注意:某些裝置資訊可能可以推測出某些使用者資訊,譬如當前IP地址可能可以大概推測出使用者當前的位置)。開發者承諾不收集任何個人身份資訊資料(譬如姓名、電話號碼、電郵地址)或可永久性標識某臺裝置的資料(譬如IMEI、MAC地址)。\n\n資料收集過程採用 Google Analytics。\nGOOGLE ANALYTICS(分析)服務條款:http://www.google.com/analytics/terms/cn.html\nGoogle隱私權和條款:http://www.google.com/intl/zh-CN/policies</string>
|
||||
<string name="portrait">豎屏</string>
|
||||
<string name="landscape">橫屏</string>
|
||||
<string name="preference_settings_title">設定</string>
|
||||
@@ -322,9 +328,9 @@
|
||||
<string name="update_server_qiniu">七牛</string>
|
||||
|
||||
<!-- Tag -->
|
||||
<string name="add_tag">添加標籤</string>
|
||||
<string name="tag_name">標簽名稱:</string>
|
||||
<string name="tag_name_empty">標簽名稱不能為空</string>
|
||||
<string name="add_tag">新增標籤</string>
|
||||
<string name="tag_name">標籤名稱:</string>
|
||||
<string name="tag_name_empty">標籤名稱不能為空</string>
|
||||
<string name="tag_change_name">修改名稱</string>
|
||||
<string name="new_tag_name">新名稱:%s</string>
|
||||
|
||||
@@ -362,6 +368,10 @@
|
||||
|
||||
<string name="photo_footnotes">Hippo 攝於成都大熊貓繁育研究基地</string>
|
||||
|
||||
<!-- Dialog sure -->
|
||||
<string name="are_you_sure_no">算了</string>
|
||||
<string name="are_you_sure_sure">確定</string>
|
||||
|
||||
<!-- Utils -->
|
||||
<string name="share">分享</string>
|
||||
<string name="filter">過濾</string>
|
||||
@@ -393,7 +403,7 @@
|
||||
<string name="local">本地</string>
|
||||
<string name="tag">標籤</string>
|
||||
<string name="copyed">已複製</string>
|
||||
<string name="send">發送</string>
|
||||
<string name="send">傳送</string>
|
||||
<string name="detail">詳情</string>
|
||||
<string name="comment">評論</string>
|
||||
<string name="info">資訊</string>
|
||||
@@ -412,11 +422,11 @@
|
||||
<string name="wait">請稍後</string>
|
||||
<string name="username">使用者名</string>
|
||||
<string name="password">密碼</string>
|
||||
<string name="add">添加</string>
|
||||
<string name="add">新增</string>
|
||||
<string name="what_to_do">你想做什麼?</string>
|
||||
<string name="jump">跳頁</string>
|
||||
<string name="some_page">第 %d 頁</string>
|
||||
<string name="_default">默認</string>
|
||||
<string name="_default">預設</string>
|
||||
<string name="delete">刪除</string>
|
||||
<string name="move">移動</string>
|
||||
<string name="list">列表</string>
|
||||
|
||||
@@ -227,6 +227,12 @@
|
||||
<string name="default_favorite">Default Favorite</string>
|
||||
<string name="history_eh_settings_title">History</string>
|
||||
<string name="max_history_count_title">The maximum number of history records</string>
|
||||
<string name="hah_eh_settings_title" translatable="false">Hentai@Home</string>
|
||||
<string name="hah_proxy_title">H@H proxy</string>
|
||||
<string name="hah_proxy_config_title">H@H proxy config</string>
|
||||
<string name="hah_ip">IP Address</string>
|
||||
<string name="hah_port">Port</string>
|
||||
<string name="hah_passkey">Passkey (Optional)</string>
|
||||
|
||||
<string name="read_settings_title">Reading</string>
|
||||
<string name="reading_direction_title">Reading direction</string>
|
||||
@@ -245,6 +251,7 @@
|
||||
<string name="custom_codec_summary">Custom codec may cost less memory, decode faster</string>
|
||||
<string name="custom_codec_summary_not">Custom codec do not support x86, mips</string>
|
||||
<string name="clean_redundancy_title">Clean redundancy</string>
|
||||
<string name="clean_redundancy_mesg">Are you sure you want to clean redundancy? It will delete all gallery files which is not in the download list.</string>
|
||||
<string name="no_redundancy">No redundancy</string>
|
||||
<string name="clean_redundancy">Redundancy cleaning completed, clean-up %d items totally</string>
|
||||
<string name="decode_format_title">Decode format</string>
|
||||
@@ -398,6 +405,10 @@
|
||||
|
||||
<string name="photo_footnotes">Taken by Hippo at Chengdu Research Base of Giant Panda Breeding</string>
|
||||
|
||||
<!-- Dialog sure -->
|
||||
<string name="are_you_sure_no">No</string>
|
||||
<string name="are_you_sure_sure">Sure</string>
|
||||
|
||||
<!-- Util -->
|
||||
<string name="share">share</string>
|
||||
<string name="filter">filter</string>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<resources>
|
||||
|
||||
<!-- Application theme. -->
|
||||
<style name="AppTheme" parent="@android:Theme.Holo.Light.DarkActionBar">
|
||||
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
|
||||
<item name="themeColor">@color/theme</item>
|
||||
<!-- Text -->
|
||||
<item name="textColor">@color/primary_text_dark</item>
|
||||
@@ -59,7 +59,7 @@
|
||||
<item name="android:spinnerItemStyle">@style/DropDownItem.Spinner</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Dark" parent="@android:Theme.Holo">
|
||||
<style name="AppTheme.Dark" parent="android:Theme.Holo">
|
||||
<item name="themeColor">@color/theme_dark</item>
|
||||
<!-- Text -->
|
||||
<item name="textColor">@color/primary_text_light</item>
|
||||
@@ -157,4 +157,4 @@
|
||||
<item name="android:windowAnimationStyle">@android:style/Animation</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
@@ -78,4 +78,4 @@
|
||||
android:summary="@string/fix_dirname_title_summary" />
|
||||
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
</PreferenceScreen>
|
||||
@@ -78,4 +78,17 @@
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
<PreferenceCategory android:title="@string/hah_eh_settings_title" >
|
||||
|
||||
<SwitchPreference
|
||||
android:key="hah_proxy"
|
||||
android:title="@string/hah_proxy_title"/>
|
||||
|
||||
<Preference
|
||||
android:key="hah_proxy_config"
|
||||
android:dependency="hah_proxy"
|
||||
android:title="@string/hah_proxy_config_title"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in new issue
Block a user