Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
Update AboutUsUI.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Tungstend committed Feb 8, 2024
1 parent ee9183f commit 5cd6a28
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void onClick(View view) {
Uri uri = null;

if (view == hmclpe) {
uri = Uri.parse("https://tungstend.github.io/");
//uri = Uri.parse("https://tungstend.github.io/");
}
if (view == tungs) {
uri = Uri.parse("https://space.bilibili.com/18115101");
Expand Down Expand Up @@ -113,7 +113,9 @@ public void onClick(View view) {
uri = Uri.parse("https://www.mcmod.cn/");
}

Intent intent = new Intent(Intent.ACTION_VIEW, uri);
context.startActivity(intent);
if (uri != null) {
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
context.startActivity(intent);
}
}
}

0 comments on commit 5cd6a28

Please sign in to comment.