mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-11 03:24:52 +02:00
Extra themes are a pro feature
This commit is contained in:
@@ -86,6 +86,11 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
int uiMode = getResources().getConfiguration().uiMode;
|
||||
Log.i("UI mode=" + uiMode);
|
||||
|
||||
if (!this.getClass().equals(ActivitySetup.class) &&
|
||||
!ActivityBilling.isPro(this) &&
|
||||
(theme.contains("yellow") || theme.contains("red")))
|
||||
theme = "blue_orange_light";
|
||||
|
||||
switch (theme) {
|
||||
case "light":
|
||||
case "blue_orange_light":
|
||||
|
||||
@@ -694,6 +694,9 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||
swDark = dview.findViewById(R.id.swDark);
|
||||
swSystem = dview.findViewById(R.id.swSystem);
|
||||
|
||||
Helper.linkPro(dview.findViewById(R.id.tvThemeYellowPurplePro));
|
||||
Helper.linkPro(dview.findViewById(R.id.tvThemeRedGreenPro));
|
||||
|
||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
String theme = prefs.getString("theme", "light");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user