Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 5cd6a28

Browse files
committed
Update AboutUsUI.java
1 parent ee9183f commit 5cd6a28

File tree

1 file changed

+5
-3
lines changed
  • HMCLPE/src/main/java/com/tungsten/hmclpe/launcher/uis/universal/setting/right/help

1 file changed

+5
-3
lines changed

HMCLPE/src/main/java/com/tungsten/hmclpe/launcher/uis/universal/setting/right/help/AboutUsUI.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void onClick(View view) {
8585
Uri uri = null;
8686

8787
if (view == hmclpe) {
88-
uri = Uri.parse("https://tungstend.github.io/");
88+
//uri = Uri.parse("https://tungstend.github.io/");
8989
}
9090
if (view == tungs) {
9191
uri = Uri.parse("https://space.bilibili.com/18115101");
@@ -113,7 +113,9 @@ public void onClick(View view) {
113113
uri = Uri.parse("https://www.mcmod.cn/");
114114
}
115115

116-
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
117-
context.startActivity(intent);
116+
if (uri != null) {
117+
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
118+
context.startActivity(intent);
119+
}
118120
}
119121
}

0 commit comments

Comments
 (0)