diff --git a/app/src/main/java/org/mazhuang/guanggoo/settings/SettingsFragment.java b/app/src/main/java/org/mazhuang/guanggoo/settings/SettingsFragment.java
index 458355a..26014ab 100644
--- a/app/src/main/java/org/mazhuang/guanggoo/settings/SettingsFragment.java
+++ b/app/src/main/java/org/mazhuang/guanggoo/settings/SettingsFragment.java
@@ -1,5 +1,7 @@
package org.mazhuang.guanggoo.settings;
+import android.content.Intent;
+import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -63,7 +65,7 @@ public void onCommentsOrderDescChanged(CompoundButton button, boolean value) {
PrefsUtil.putBoolean(App.getInstance(), ConstantUtil.KEY_COMMENTS_ORDER_DESC, value);
}
- @OnClick({R.id.img_bed_api_key})
+ @OnClick({R.id.img_bed_api_key, R.id.help_image_bed_api_key})
public void onClick(View v) {
switch (v.getId()) {
case R.id.img_bed_api_key: {
@@ -73,6 +75,11 @@ public void onClick(View v) {
mListener.openPage(ConstantUtil.SETTINGS_EDIT_URL, mImgBedLabelTextView.getText().toString(), bundle);
}
break;
+
+ case R.id.help_image_bed_api_key:
+ startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(ConstantUtil.IMAGE_BED_HELP_URL)));
+ break;
+
default:
break;
}
diff --git a/app/src/main/java/org/mazhuang/guanggoo/util/ConstantUtil.java b/app/src/main/java/org/mazhuang/guanggoo/util/ConstantUtil.java
index 9f79a52..bab73e2 100644
--- a/app/src/main/java/org/mazhuang/guanggoo/util/ConstantUtil.java
+++ b/app/src/main/java/org/mazhuang/guanggoo/util/ConstantUtil.java
@@ -69,4 +69,5 @@ private ConstantUtil() {}
public static final String DOWNLOAD_URL_COOLAPK = "https://www.coolapk.com/apk/164523";
public static final String PRIVACY_URL = "https://mazhuang.org/guanggoo-android/policy";
+ public static final String IMAGE_BED_HELP_URL = "https://mazhuang.org/guanggoo-android/image-bed-help";
}
diff --git a/app/src/main/res/drawable-xxhdpi/help_how.png b/app/src/main/res/drawable-xxhdpi/help_how.png
new file mode 100644
index 0000000..90b8700
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/help_how.png differ
diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml
index 86396f3..e4da2f4 100644
--- a/app/src/main/res/layout/fragment_settings.xml
+++ b/app/src/main/res/layout/fragment_settings.xml
@@ -48,4 +48,19 @@
android:src="@drawable/right"/>
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5657cbd..08dbf2f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -114,6 +114,7 @@
隐私与政策
图床 API KEY
请输入 sm.ms 图床 api key
+ 如何获取图床 API KEY
- @string/default_order_topics