Skip to content

Commit 6e28103

Browse files
committed
Unlock styles via isPremium default now that Sustainer is discontinued
Per review feedback, the minimal change: default PrefUtils.isPremium to true (pref_key_premium was never written anywhere, so no device has a stored value) and make the Style preference row visible in Settings. Fixes #1771 Fixes #1661
1 parent 9c9b426 commit 6e28103

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
2.39
22
-----
3+
* Unlocked all styles, including the pure-black AMOLED style, for everyone now that Simplenote Sustainer is discontinued [#1771](https://github.com/Automattic/simplenote-android/issues/1771) [#1661](https://github.com/Automattic/simplenote-android/issues/1661)
34

45
2.38
56
-----

Simplenote/src/main/java/com/automattic/simplenote/utils/PrefUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static CharSequence versionInfo() {
168168
}
169169

170170
public static boolean isPremium(Context context) {
171-
return getPrefs(context).getBoolean(PREF_PREMIUM, false);
171+
return getPrefs(context).getBoolean(PREF_PREMIUM, true);
172172
}
173173

174174
public static void setIsPremium(Context context, boolean isPremium) {

Simplenote/src/main/res/xml/preferences.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
android:key="pref_key_style"
5555
android:summary="%s"
5656
android:title="@string/style"
57-
app:isPreferenceVisible="false"
57+
app:isPreferenceVisible="true"
5858
tools:summary="@string/style_classic">
5959
</Preference>
6060

0 commit comments

Comments
 (0)