diff --git a/app/src/main/java/com/hippo/ehviewer/ui/scene/CookieSignInScene.java b/app/src/main/java/com/hippo/ehviewer/ui/scene/CookieSignInScene.java
index 604e6e3d6..e443d9a4e 100644
--- a/app/src/main/java/com/hippo/ehviewer/ui/scene/CookieSignInScene.java
+++ b/app/src/main/java/com/hippo/ehviewer/ui/scene/CookieSignInScene.java
@@ -18,6 +18,7 @@ package com.hippo.ehviewer.ui.scene;
import android.content.Context;
import android.content.DialogInterface;
+import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TextInputLayout;
@@ -79,6 +80,25 @@ public class CookieSignInScene extends BaseScene implements EditText.OnEditorAct
mOk.setOnClickListener(this);
+ // Try to get old version cookie info
+ Context context = getContext2();
+ AssertUtils.assertNotNull(context);
+ SharedPreferences sharedPreferences = context.getSharedPreferences("eh_info", 0);
+ String ipbMemberId = sharedPreferences.getString("ipb_member_id", null);
+ String ipbPassHash = sharedPreferences.getString("ipb_pass_hash", null);
+ boolean getIt = false;
+ if (!TextUtils.isEmpty(ipbMemberId)) {
+ mIpbMemberId.setText(ipbMemberId);
+ getIt = true;
+ }
+ if (!TextUtils.isEmpty(ipbPassHash)) {
+ mIpbPassHash.setText(ipbPassHash);
+ getIt = true;
+ }
+ if (getIt) {
+ showTip(R.string.found_cookies, LENGTH_SHORT);
+ }
+
return view;
}
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 8c3f23c29..885629073 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -46,6 +46,7 @@
看起来您输入的 Cookie 是错误的,最好检查一下。
好的
我没输错
+ 找到旧版 Cookie
似乎下载路径不可用。请到重新设置下载路径。
@@ -80,7 +81,7 @@
密码不可为空
跳过登陆
登陆失败
- 这可能是网站更新导致的,也有可能是发生了奇怪的事情。您可以选择在登陆按钮下方通过网页登陆或者输入 cookie,或者跳过登陆。跳过登陆可能导致无法正常使用应用。
+ 这可能是网站更新导致的,也有可能是发生了奇怪的事情。您可以选择在登陆按钮下方通过网页登陆或者输入 cookie,或者跳过登陆。跳过登陆可能导致无法正常使用应用。如果你已经在 0.6.x 版登陆过了,请优先尝试选择“通过 Cookie 登陆”。
再按一次退出
点击重试
EhViewer 将申请设备存储空间访问权限以便下载画廊。您愿意授权吗?
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index 1c5e4560b..2e4ef132f 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -46,6 +46,7 @@
看起來您輸入的 Cookie 是錯誤的,最好檢查一下。
好的
我沒輸錯
+ 找到舊版 Cookie
似乎下載路徑不可用。請到重新設置下載路徑。
@@ -80,7 +81,7 @@
密碼不可為空
跳過登陸
登陸失敗
- 這可能是網站更新導致的,也有可能是發生了奇怪的事情。您可以選擇在登陸按鈕下方通過網頁登陸或者輸入 cookie,或者跳過登陸。跳過登陸可能導致無法正常使用應用。
+ 這可能是網站更新導致的,也有可能是發生了奇怪的事情。您可以選擇在登陸按鈕下方通過網頁登陸或者輸入 cookie,或者跳過登陸。跳過登陸可能導致無法正常使用應用。如果你已經在 0.6.x 版登陸過了,請優先嚐試選擇“通過 Cookie 登陸”。
再按一次退出
點擊重試
EhViewer 將申請設備存儲空間訪問權限以便下載畫廊。您願意授權嗎?
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index a2d9cab4e..d684feb1b 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -46,6 +46,7 @@
看起來您輸入的 Cookie 是錯誤的,最好檢查一下。
好的
我沒輸錯
+ 找到舊版 Cookie
似乎下載路徑不可用。請到重新設定下載路徑。
@@ -80,7 +81,7 @@
密碼不可為空
跳過登陸
登陸失敗
- 這可能是網站更新導致的,也有可能是發生了奇怪的事情。您可以選擇在登陸按鈕下方通過網頁登陸或者輸入 cookie,或者跳過登陸。跳過登陸可能導致無法正常使用應用。
+ 這可能是網站更新導致的,也有可能是發生了奇怪的事情。您可以選擇在登陸按鈕下方通過網頁登陸或者輸入 cookie,或者跳過登陸。跳過登陸可能導致無法正常使用應用。如果你已經在 0.6.x 版登陸過了,請優先嚐試選擇“通過 Cookie 登陸”。
再按一次退出
點選重試
EhViewer 將申請裝置儲存空間訪問許可權以便下載畫廊。您願意授權嗎?
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a3b257adf..ab187b3be 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -62,6 +62,7 @@
It seems that the cookies you entered are wrong. You\'d better check them.
I will check it
I don\'t think so
+ Found cookies!
It seems download location is not available. Please set it in Settings.
@@ -122,7 +123,7 @@
Password cannot be an empty string
Skip signing in
Sign in failed
- Perhaps it is a mistake due to website update or something wrong happened. You may try sign in via WebView or enter cookie or skip signing in under sign in button. But you may be a "Sad Panda" after skipping signing in.
+ Perhaps it is a mistake due to website update or something wrong happened. You may try sign in via WebView or enter cookie or skip signing in under sign in button. But you may be a "Sad Panda" after skipping signing in. Try "Sign in via cookies" first if you had signed in on 0.6.x version.
Press twice to exit
Click to retry
EhViewer will request WRITE_EXTERNAL_STORAGE permission for downloading gallery. Do you want to grant the permission?