pull/215/head
M66B 7 months ago
parent a3024bc3ea
commit 3a2b7386ea

@ -5658,6 +5658,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
View dview = LayoutInflater.from(context).inflate( View dview = LayoutInflater.from(context).inflate(
full ? R.layout.dialog_show_full : R.layout.dialog_show_images, null); full ? R.layout.dialog_show_full : R.layout.dialog_show_images, null);
TextView tvMessage = dview.findViewById(R.id.tvMessage);
CheckBox cbAlwaysImages = dview.findViewById(R.id.cbAlwaysImages); // Full only CheckBox cbAlwaysImages = dview.findViewById(R.id.cbAlwaysImages); // Full only
CheckBox cbNotAgainSender = dview.findViewById(R.id.cbNotAgainSender); CheckBox cbNotAgainSender = dview.findViewById(R.id.cbNotAgainSender);
CheckBox cbNotAgainDomain = dview.findViewById(R.id.cbNotAgainDomain); CheckBox cbNotAgainDomain = dview.findViewById(R.id.cbNotAgainDomain);
@ -5665,6 +5666,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
CheckBox cbNeverAgain = dview.findViewById(R.id.cbNeverAgain); CheckBox cbNeverAgain = dview.findViewById(R.id.cbNeverAgain);
TextView tvNeverAgainHint = dview.findViewById(R.id.tvNeverAgainHint); TextView tvNeverAgainHint = dview.findViewById(R.id.tvNeverAgainHint);
tvMessage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 35);
}
});
if (junk) { if (junk) {
if (full) if (full)
cbAlwaysImages.setVisibility(View.GONE); cbAlwaysImages.setVisibility(View.GONE);

@ -14,6 +14,9 @@
android:id="@+id/tvMessage" android:id="@+id/tvMessage"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawableEnd="@drawable/twotone_info_24"
android:drawablePadding="6dp"
android:drawableTint="?attr/colorWarning"
android:text="@string/title_ask_show_html" android:text="@string/title_ask_show_html"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
@ -24,7 +27,7 @@
android:id="@+id/tvDark" android:id="@+id/tvDark"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="24dp"
android:text="@string/title_ask_show_html_remark" android:text="@string/title_ask_show_html_remark"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic" android:textStyle="italic"
@ -36,7 +39,7 @@
android:id="@+id/cbAlwaysImages" android:id="@+id/cbAlwaysImages"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="24dp"
android:text="@string/title_ask_show_html_images" android:text="@string/title_ask_show_html_images"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

@ -14,6 +14,9 @@
android:id="@+id/tvMessage" android:id="@+id/tvMessage"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawableEnd="@drawable/twotone_info_24"
android:drawablePadding="6dp"
android:drawableTint="?attr/colorWarning"
android:text="@string/title_ask_show_image" android:text="@string/title_ask_show_image"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
@ -35,7 +38,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:layout_marginTop="12dp" android:layout_marginTop="24dp"
android:background="?android:attr/selectableItemBackground" android:background="?android:attr/selectableItemBackground"
android:drawableEnd="@drawable/twotone_info_24" android:drawableEnd="@drawable/twotone_info_24"
android:drawablePadding="6dp" android:drawablePadding="6dp"
@ -51,7 +54,7 @@
android:id="@+id/cbNotAgainSender" android:id="@+id/cbNotAgainSender"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="24dp"
android:text="@string/title_no_ask_for_again" android:text="@string/title_no_ask_for_again"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

Loading…
Cancel
Save