This commit is contained in:
M66B 2021-09-17 21:34:57 +02:00
parent 847c06e44d
commit 522cd30e7c
2 changed files with 15 additions and 0 deletions

View File

@ -4332,11 +4332,17 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
LayoutInflater inflater = LayoutInflater.from(context);
View dview = inflater.inflate(R.layout.dialog_ask_again, null, false);
final TextView tvMessage = dview.findViewById(R.id.tvMessage);
final ImageButton ibInfo = dview.findViewById(R.id.ibInfo);
final TextView tvRemark = dview.findViewById(R.id.tvRemark);
final CheckBox cbConfirm = dview.findViewById(R.id.cbConfirm);
final CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain);
final TextView tvAccept = dview.findViewById(R.id.tvAccept);
tvMessage.setText(R.string.title_ask_show_html);
ibInfo.setVisibility(View.GONE);
tvRemark.setText(R.string.title_ask_show_image_hint);
cbConfirm.setVisibility(View.GONE);
tvAccept.setVisibility(View.GONE);
new AlertDialog.Builder(context)
.setView(dview)

View File

@ -31,6 +31,7 @@ import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.annotation.NonNull;
@ -170,10 +171,18 @@ public class FragmentContacts extends FragmentBase {
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
final View dview = LayoutInflater.from(getContext()).inflate(R.layout.dialog_ask_again, null);
final TextView tvMessage = dview.findViewById(R.id.tvMessage);
final ImageButton ibInfo = dview.findViewById(R.id.ibInfo);
final TextView tvRemark = dview.findViewById(R.id.tvRemark);
final CheckBox cbConfirm = dview.findViewById(R.id.cbConfirm);
CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain);
final TextView tvAccept = dview.findViewById(R.id.tvAccept);
tvMessage.setText(getString(R.string.title_delete_contacts));
ibInfo.setVisibility(View.GONE);
tvRemark.setVisibility(View.GONE);
cbNotAgain.setVisibility(View.GONE);
cbConfirm.setVisibility(View.GONE);
tvAccept.setVisibility(View.GONE);
return new AlertDialog.Builder(getContext())
.setView(dview)