mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 10:01:22 +01:00
Allow trying pro features as far as possible
This commit is contained in:
@@ -277,18 +277,18 @@ public class FragmentIdentity extends FragmentBase {
|
||||
btnColor.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (!Helper.isPro(getContext())) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
||||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_SHOW_PRO));
|
||||
return;
|
||||
}
|
||||
|
||||
int[] colors = getContext().getResources().getIntArray(R.array.colorPicker);
|
||||
ColorPickerDialog colorPickerDialog = new ColorPickerDialog();
|
||||
colorPickerDialog.initialize(R.string.title_account_color, colors, color, 4, colors.length);
|
||||
colorPickerDialog.setOnColorSelectedListener(new ColorPickerSwatch.OnColorSelectedListener() {
|
||||
@Override
|
||||
public void onColorSelected(int color) {
|
||||
if (!Helper.isPro(getContext())) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
||||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_SHOW_PRO));
|
||||
return;
|
||||
}
|
||||
|
||||
setColor(color);
|
||||
}
|
||||
});
|
||||
@@ -608,7 +608,7 @@ public class FragmentIdentity extends FragmentBase {
|
||||
if (TextUtils.isEmpty(bcc))
|
||||
bcc = null;
|
||||
|
||||
if (Color.TRANSPARENT == color)
|
||||
if (color == Color.TRANSPARENT || !Helper.isPro(context))
|
||||
color = null;
|
||||
if (TextUtils.isEmpty(signature))
|
||||
signature = null;
|
||||
|
||||
Reference in New Issue
Block a user