-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tiann
committed
Apr 19, 2018
1 parent
1dd878d
commit 553d4c8
Showing
4 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { | |
.addItem(getFeedbackWechatElement()) | ||
.addItem(getFeedbacTelegramElement()) | ||
.addItem(getThanksElement()) | ||
.addItem(getWebsiteElement()) | ||
.addEmail("[email protected]") | ||
.addWebsite("http://vxposed.com") | ||
.addGitHub("tiann") | ||
.addItem(getCopyRightsElement()); | ||
View aboutPage = page.create(); | ||
|
@@ -74,7 +74,7 @@ Element getVersionElement() { | |
Element getFeedbackElement() { | ||
Element feedback = new Element(); | ||
final String qqGroup = "597478474"; | ||
feedback.setTitle(getResources().getString(R.string.about_feedback_title, qqGroup)); | ||
feedback.setTitle(getResources().getString(R.string.about_feedback_title)); | ||
|
||
feedback.setOnClickListener(v -> { | ||
ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); | ||
|
@@ -88,13 +88,13 @@ Element getFeedbackElement() { | |
|
||
Element getFeedbackWechatElement() { | ||
Element feedback = new Element(); | ||
final String weChatGroup = "CSYJZF"; | ||
feedback.setTitle(getResources().getString(R.string.about_feedback_wechat_title, weChatGroup)); | ||
// final String weChatGroup = "CSYJZF"; | ||
feedback.setTitle(getResources().getString(R.string.about_feedback_wechat_title)); | ||
|
||
feedback.setOnClickListener(v -> { | ||
ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); | ||
if (clipboardManager != null) { | ||
clipboardManager.setPrimaryClip(ClipData.newPlainText(null, weChatGroup)); | ||
clipboardManager.setPrimaryClip(ClipData.newPlainText(null, "VirtualXposed")); | ||
} | ||
Toast.makeText(v.getContext(), getResources().getString(R.string.about_feedback_tips), Toast.LENGTH_SHORT).show(); | ||
}); | ||
|
@@ -117,6 +117,21 @@ Element getFeedbacTelegramElement() { | |
return feedback; | ||
} | ||
|
||
Element getWebsiteElement() { | ||
Element feedback = new Element(); | ||
feedback.setTitle(getResources().getString(R.string.about_website_title)); | ||
|
||
feedback.setOnClickListener(v -> { | ||
Intent intent = new Intent(Intent.ACTION_VIEW); | ||
intent.setData(Uri.parse("http://vxposed.com")); | ||
try { | ||
startActivity(intent); | ||
} catch (Throwable ignored) { | ||
} | ||
}); | ||
return feedback; | ||
} | ||
|
||
Element getThanksElement() { | ||
Element thanks = new Element(); | ||
thanks.setTitle(getResources().getString(R.string.about_thanks)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters