Skip to content

Commit

Permalink
setCancelable added to ProductAdderDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Iltwats committed Nov 28, 2020
1 parent f8ee7a8 commit a3f5c39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import android.widget.RadioGroup;
import android.widget.Toast;


import com.atul.android.ecommerce.R;
import com.atul.android.ecommerce.databinding.ProductAdderDialogBinding;
import com.atul.android.ecommerce.model.Product;
Expand All @@ -33,6 +32,7 @@ public void showDialog(Context context, OnProductAddListener listener) {
);

new AlertDialog.Builder(context)
.setCancelable(false)
.setTitle(productType == PRODUCT_ADD ? "Add Product" : "Edit Product")
.setView(b.getRoot())
.setPositiveButton(productType == PRODUCT_ADD ? "ADD" : "EDIT", new DialogInterface.OnClickListener() {
Expand Down

0 comments on commit a3f5c39

Please sign in to comment.