File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
app/src/main/java/com/yangdai/calc/main/sheets Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments