From b44fdcfeecc2e2ed798a6d10e6d6c4d5e65d01cc Mon Sep 17 00:00:00 2001 From: seven332 Date: Sat, 6 Sep 2014 21:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8B=E8=BD=BD=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/values-zh-rCN/strings.xml | 1 + res/values-zh-rHK/strings.xml | 1 + res/values-zh-rTW/strings.xml | 1 + res/values/strings.xml | 1 + res/xml/about_settings.xml | 34 +++++++++++-------- .../hippo/ehviewer/ui/SettingsActivity.java | 9 +++++ 6 files changed, 32 insertions(+), 15 deletions(-) diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 016dd007a..5e8f7a82c 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -233,6 +233,7 @@ 检查更新 点击检查更新 更新服务器 + 如果更新失败点击此处 数据统计 启用数据统计 感谢您对本应用的支持 diff --git a/res/values-zh-rHK/strings.xml b/res/values-zh-rHK/strings.xml index 6b518efc5..bd79ba351 100644 --- a/res/values-zh-rHK/strings.xml +++ b/res/values-zh-rHK/strings.xml @@ -221,6 +221,7 @@ 檢查更新 點擊檢查更新 更新服務器 + 如果更新失敗點擊此處 數據統計 啓用數據統計 感謝您對本應用的支持 diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 976793933..1cdbd613c 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -221,6 +221,7 @@ 檢查更新 點選檢查更新 更新伺服器 + 如果更新失敗點選此處 資料統計 啟用資料統計 感謝您對本應用的支援 diff --git a/res/values/strings.xml b/res/values/strings.xml index 14294fc51..bc59d5f38 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -239,6 +239,7 @@ Check for update Tap to check for update Update server + Click here if update failed Statistics Enable statistics Thanks for you help diff --git a/res/xml/about_settings.xml b/res/xml/about_settings.xml index e81003102..88e1336d8 100644 --- a/res/xml/about_settings.xml +++ b/res/xml/about_settings.xml @@ -15,45 +15,45 @@ --> - + - + - + - + - + - + - + - + - + - + + + - + - + - + - + - + \ No newline at end of file diff --git a/src/com/hippo/ehviewer/ui/SettingsActivity.java b/src/com/hippo/ehviewer/ui/SettingsActivity.java index 19062d569..2560b0297 100644 --- a/src/com/hippo/ehviewer/ui/SettingsActivity.java +++ b/src/com/hippo/ehviewer/ui/SettingsActivity.java @@ -726,6 +726,7 @@ public class SettingsActivity extends AbsPreferenceActivity { private static final String KEY_WEBSITE = "website"; private static final String KEY_SOURCE = "source"; private static final String KEY_CHECK_UPDATE = "check_for_update"; + private static final String KEY_CLOUD_DRIVE = "cloud_drive"; private static final String KEY_ALLOW_ANALYICS = "allow_analyics"; private static final String KEY_ABOUT_ANALYICS = "about_analyics"; @@ -735,6 +736,7 @@ public class SettingsActivity extends AbsPreferenceActivity { private Preference mWebsite; private Preference mSource; private Preference mCheckUpdate; + private Preference mCloudDrive; private CheckBoxPreference mAllowAnalyics; private Preference mAboutAnalyics; @@ -755,6 +757,8 @@ public class SettingsActivity extends AbsPreferenceActivity { mSource.setOnPreferenceClickListener(this); mCheckUpdate = findPreference(KEY_CHECK_UPDATE); mCheckUpdate.setOnPreferenceClickListener(this); + mCloudDrive = findPreference(KEY_CLOUD_DRIVE); + mCloudDrive.setOnPreferenceClickListener(this); mAllowAnalyics = (CheckBoxPreference)findPreference(KEY_ALLOW_ANALYICS); mAllowAnalyics.setOnPreferenceChangeListener(this); mAboutAnalyics = findPreference(KEY_ABOUT_ANALYICS); @@ -838,6 +842,11 @@ public class SettingsActivity extends AbsPreferenceActivity { } }).checkUpdate(); + } else if (KEY_CLOUD_DRIVE.equals(key)) { + Uri uri = Uri.parse("https://mega.co.nz/#F!xkMChYrI!Q85i3d7kNkhVkwvDePbahw"); + Intent intent = new Intent(Intent.ACTION_VIEW, uri); + startActivity(intent); + } else if (KEY_ABOUT_ANALYICS.equals(key)) { new DialogBuilder(mActivity).setTitle(R.string.about_analyics_title) .setMessageAutoLink(Linkify.WEB_URLS)