pull/206/head
M66B 3 years ago
parent 847c06e44d
commit 522cd30e7c

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

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

Loading…
Cancel
Save