Skip to content

Commit 1bda317

Browse files
committed
RateMeDialog: Don't show again after rating
We can't really know if the user really rated, but at least this PR will make Juergen happy. For #38
1 parent 80764e2 commit 1bda317

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

opencloudApp/src/main/java/eu/opencloud/android/ui/dialog/RateMeDialog.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
104104
} catch (ActivityNotFoundException e) {
105105
ActivityExtKt.goToUrl(requireActivity(), PLAY_STORE_URI + packageName, null);
106106
}
107+
SharedPreferences preferences = getActivity().getSharedPreferences
108+
(AppRater.APP_RATER_PREF_TITLE, 0);
109+
SharedPreferences.Editor editor = preferences.edit();
110+
editor.putBoolean(AppRater.APP_RATER_PREF_DONT_SHOW, true);
111+
editor.apply();
107112
dialog.dismiss();
108113
});
109114

0 commit comments

Comments
 (0)