|
|
@ -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)
|
|
|
|