mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Mark not allowed options
This commit is contained in:
parent
f22125d15b
commit
01906b4d91
2 changed files with 37 additions and 13 deletions
|
@ -112,7 +112,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|||
private SwitchCompat swFavicons;
|
||||
private SwitchCompat swFaviconsPartial;
|
||||
private TextView tvFaviconsHint;
|
||||
private TextView tvFaviconsPlay;
|
||||
private SwitchCompat swGeneratedIcons;
|
||||
private SwitchCompat swIdenticons;
|
||||
private SwitchCompat swCircular;
|
||||
|
@ -178,6 +177,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|||
private SwitchCompat swAuthentication;
|
||||
private SwitchCompat swAuthenticationIndicator;
|
||||
|
||||
private Group grpPlay;
|
||||
private Group grpUnzip;
|
||||
|
||||
private NumberFormat NF = NumberFormat.getNumberInstance();
|
||||
|
@ -266,7 +266,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|||
swFavicons = view.findViewById(R.id.swFavicons);
|
||||
swFaviconsPartial = view.findViewById(R.id.swFaviconsPartial);
|
||||
tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint);
|
||||
tvFaviconsPlay = view.findViewById(R.id.tvFaviconsPlay);
|
||||
swGeneratedIcons = view.findViewById(R.id.swGeneratedIcons);
|
||||
swIdenticons = view.findViewById(R.id.swIdenticons);
|
||||
swCircular = view.findViewById(R.id.swCircular);
|
||||
|
@ -330,6 +329,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|||
swAuthentication = view.findViewById(R.id.swAuthentication);
|
||||
swAuthenticationIndicator = view.findViewById(R.id.swAuthenticationIndicator);
|
||||
|
||||
grpPlay = view.findViewById(R.id.grpPlay);
|
||||
grpUnzip = view.findViewById(R.id.grpUnzip);
|
||||
|
||||
List<StyleHelper.FontDescriptor> fonts = StyleHelper.getFonts(getContext());
|
||||
|
@ -1227,7 +1227,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|||
|
||||
// Initialize
|
||||
FragmentDialogTheme.setBackground(getContext(), view, false);
|
||||
tvFaviconsPlay.setVisibility(BuildConfig.PLAY_STORE_RELEASE ? View.VISIBLE : View.GONE);
|
||||
grpPlay.setVisibility(BuildConfig.PLAY_STORE_RELEASE || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||
swFaviconsPartial.setText(getString(R.string.title_advanced_favicons_partial,
|
||||
Helper.humanReadableByteCount(ContactInfo.FAVICON_READ_BYTES, false)));
|
||||
grpUnzip.setVisibility(Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? View.GONE : View.VISIBLE);
|
||||
|
|
|
@ -808,6 +808,23 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/vSeparatorAvatar"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vwFavicon"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="?attr/colorSeparator"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tvFaviconsPlay"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/swBimi" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vwFaviconPadding"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tvFaviconsPlay"
|
||||
app:layout_constraintStart_toEndOf="@+id/vwFavicon"
|
||||
app:layout_constraintTop_toTopOf="@+id/swBimi" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/swBimi"
|
||||
android:layout_width="0dp"
|
||||
|
@ -815,7 +832,7 @@
|
|||
android:layout_marginTop="12dp"
|
||||
android:text="@string/title_advanced_bimi"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/swAvatars"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
|
@ -830,7 +847,7 @@
|
|||
android:text="@string/title_advanced_privacy_risk"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textColor="?attr/colorWarning"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/swBimi" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
|
@ -844,7 +861,7 @@
|
|||
android:text="@string/title_advanced_bimi_unverified"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textStyle="italic"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvBimiHint" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
|
@ -858,7 +875,7 @@
|
|||
android:text="@string/title_advanced_bimi_verified"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textStyle="italic"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvBimiUnverified" />
|
||||
|
||||
<eu.faircode.email.FixedImageButton
|
||||
|
@ -868,7 +885,7 @@
|
|||
android:layout_marginTop="6dp"
|
||||
android:contentDescription="@string/title_info"
|
||||
android:tooltipText="@string/title_info"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBimiVerified"
|
||||
app:srcCompat="@drawable/twotone_info_24" />
|
||||
|
||||
|
@ -879,7 +896,7 @@
|
|||
android:layout_marginTop="12dp"
|
||||
android:text="@string/title_advanced_efavicons"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/ibBimi"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
|
@ -890,7 +907,7 @@
|
|||
android:layout_marginTop="12dp"
|
||||
android:text="@string/title_advanced_favicons"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/swEFavicons"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
|
@ -905,7 +922,7 @@
|
|||
android:text="@string/title_advanced_privacy_risk"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textColor="?attr/colorWarning"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/swFavicons" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
|
@ -917,7 +934,7 @@
|
|||
android:checked="true"
|
||||
android:text="@string/title_advanced_favicons_partial"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFaviconsHint"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
|
@ -931,7 +948,8 @@
|
|||
android:text="@string/title_advanced_favicons_play"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textColor="?attr/colorWarning"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toEndOf="@id/vwFaviconPadding"
|
||||
app:layout_constraintTop_toBottomOf="@id/swFaviconsPartial" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
|
@ -1465,6 +1483,12 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvPreviewLinesHint" />
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/grpPlay"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:constraint_referenced_ids="vwFavicon,vwFaviconPadding,tvFaviconsPlay" />
|
||||
</eu.faircode.email.ConstraintLayoutEx>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
|
|
Loading…
Reference in a new issue