show a Rate us button to returning users

This commit is contained in:
tibbi
2016-07-01 14:49:49 +02:00
parent 529902e512
commit 241d834434
6 changed files with 46 additions and 24 deletions

View File

@@ -14,6 +14,14 @@ public class Config {
mPrefs = context.getSharedPreferences(Constants.PREFS_KEY, Context.MODE_PRIVATE);
}
public boolean getIsFirstRun() {
return mPrefs.getBoolean(Constants.IS_FIRST_RUN, true);
}
public void setIsFirstRun(boolean firstRun) {
mPrefs.edit().putBoolean(Constants.IS_FIRST_RUN, firstRun).apply();
}
public boolean getLongTapEnabled() {
return mPrefs.getBoolean(Constants.LONG_TAP, true);
}