version:1.1.5
update: bugfixes:优化闹钟自动接听
This commit is contained in:
@@ -23,6 +23,7 @@ public class EditContactDialog extends AlertDialog {
|
||||
private ConstraintLayout clEdit, clDelete, clCancel;
|
||||
|
||||
private String mPhoneNumber;
|
||||
private boolean hideDelete = false;
|
||||
|
||||
private Context mContext;
|
||||
|
||||
@@ -31,6 +32,9 @@ public class EditContactDialog extends AlertDialog {
|
||||
this.mContext = context;
|
||||
}
|
||||
|
||||
public void setHideDelete(boolean hideDelete) {
|
||||
this.hideDelete = hideDelete;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -89,6 +93,11 @@ public class EditContactDialog extends AlertDialog {
|
||||
} else {
|
||||
|
||||
}
|
||||
if (hideDelete) {
|
||||
clDelete.setVisibility(View.GONE);
|
||||
} else {
|
||||
clDelete.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user