Skip to content

Commit 34d094b

Browse files
committed
update v6.9
1 parent 4937182 commit 34d094b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/src/main/java/com/yangdai/calc/main/sheets/AboutFragment.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ public void onDestroy() {
104104

105105
@SuppressLint("SetTextI18n")
106106
private void init(View view) {
107-
view.findViewById(R.id.about_rate).setOnClickListener(v -> {
108-
Uri uri = Uri.parse("https://play.google.com/store/apps/details?id=com.yangdai.calc");
109-
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
110-
startActivity(intent);
111-
});
107+
view.findViewById(R.id.about_rate).setOnClickListener(v -> webIntent.launchUrl(requireContext(), Uri.parse("https://play.google.com/store/apps/details?id=com.yangdai.calc")));
112108
view.findViewById(R.id.about_share).setOnClickListener(v -> {
113109
Intent sendIntent = new Intent(Intent.ACTION_SEND);
114110
sendIntent.setType("text/plain");

0 commit comments

Comments
 (0)