|
|
@ -112,6 +112,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private SwitchCompat swFavicons;
|
|
|
|
private SwitchCompat swFavicons;
|
|
|
|
private SwitchCompat swFaviconsPartial;
|
|
|
|
private SwitchCompat swFaviconsPartial;
|
|
|
|
private TextView tvFaviconsHint;
|
|
|
|
private TextView tvFaviconsHint;
|
|
|
|
|
|
|
|
private TextView tvFaviconsPlay;
|
|
|
|
private SwitchCompat swGeneratedIcons;
|
|
|
|
private SwitchCompat swGeneratedIcons;
|
|
|
|
private SwitchCompat swIdenticons;
|
|
|
|
private SwitchCompat swIdenticons;
|
|
|
|
private SwitchCompat swCircular;
|
|
|
|
private SwitchCompat swCircular;
|
|
|
@ -265,6 +266,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swFavicons = view.findViewById(R.id.swFavicons);
|
|
|
|
swFavicons = view.findViewById(R.id.swFavicons);
|
|
|
|
swFaviconsPartial = view.findViewById(R.id.swFaviconsPartial);
|
|
|
|
swFaviconsPartial = view.findViewById(R.id.swFaviconsPartial);
|
|
|
|
tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint);
|
|
|
|
tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint);
|
|
|
|
|
|
|
|
tvFaviconsPlay = view.findViewById(R.id.tvFaviconsPlay);
|
|
|
|
swGeneratedIcons = view.findViewById(R.id.swGeneratedIcons);
|
|
|
|
swGeneratedIcons = view.findViewById(R.id.swGeneratedIcons);
|
|
|
|
swIdenticons = view.findViewById(R.id.swIdenticons);
|
|
|
|
swIdenticons = view.findViewById(R.id.swIdenticons);
|
|
|
|
swCircular = view.findViewById(R.id.swCircular);
|
|
|
|
swCircular = view.findViewById(R.id.swCircular);
|
|
|
@ -726,7 +728,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swEFavicons.setVisibility(BuildConfig.PLAY_STORE_RELEASE ? View.GONE : View.VISIBLE);
|
|
|
|
|
|
|
|
swEFavicons.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swEFavicons.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -1226,6 +1227,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
|
|
|
|
|
|
|
// Initialize
|
|
|
|
// Initialize
|
|
|
|
FragmentDialogTheme.setBackground(getContext(), view, false);
|
|
|
|
FragmentDialogTheme.setBackground(getContext(), view, false);
|
|
|
|
|
|
|
|
tvFaviconsPlay.setVisibility(BuildConfig.PLAY_STORE_RELEASE ? View.VISIBLE : View.GONE);
|
|
|
|
swFaviconsPartial.setText(getString(R.string.title_advanced_favicons_partial,
|
|
|
|
swFaviconsPartial.setText(getString(R.string.title_advanced_favicons_partial,
|
|
|
|
Helper.humanReadableByteCount(ContactInfo.FAVICON_READ_BYTES, false)));
|
|
|
|
Helper.humanReadableByteCount(ContactInfo.FAVICON_READ_BYTES, false)));
|
|
|
|
grpUnzip.setVisibility(Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? View.GONE : View.VISIBLE);
|
|
|
|
grpUnzip.setVisibility(Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? View.GONE : View.VISIBLE);
|
|
|
@ -1337,8 +1339,10 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
//swColorStripeWide.setEnabled(swColorStripe.isChecked());
|
|
|
|
//swColorStripeWide.setEnabled(swColorStripe.isChecked());
|
|
|
|
swAvatars.setChecked(prefs.getBoolean("avatars", true));
|
|
|
|
swAvatars.setChecked(prefs.getBoolean("avatars", true));
|
|
|
|
swBimi.setChecked(prefs.getBoolean("bimi", false));
|
|
|
|
swBimi.setChecked(prefs.getBoolean("bimi", false));
|
|
|
|
swEFavicons.setChecked(prefs.getBoolean("efavicons", false));
|
|
|
|
swEFavicons.setChecked(prefs.getBoolean("efavicons", false) && !BuildConfig.PLAY_STORE_RELEASE);
|
|
|
|
swFavicons.setChecked(prefs.getBoolean("favicons", false));
|
|
|
|
swEFavicons.setEnabled(!BuildConfig.PLAY_STORE_RELEASE);
|
|
|
|
|
|
|
|
swFavicons.setChecked(prefs.getBoolean("favicons", false) && !BuildConfig.PLAY_STORE_RELEASE);
|
|
|
|
|
|
|
|
swFavicons.setEnabled(!BuildConfig.PLAY_STORE_RELEASE);
|
|
|
|
swFaviconsPartial.setChecked(prefs.getBoolean("favicons_partial", true));
|
|
|
|
swFaviconsPartial.setChecked(prefs.getBoolean("favicons_partial", true));
|
|
|
|
swFaviconsPartial.setEnabled(swFavicons.isChecked());
|
|
|
|
swFaviconsPartial.setEnabled(swFavicons.isChecked());
|
|
|
|
swGeneratedIcons.setChecked(prefs.getBoolean("generated_icons", true));
|
|
|
|
swGeneratedIcons.setChecked(prefs.getBoolean("generated_icons", true));
|
|
|
|