diff --git a/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java b/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java index 134cd18..546d78d 100644 --- a/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java +++ b/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java @@ -67,6 +67,17 @@ public class ProfileFragment extends Fragment { Log.i("Authentication", e.toString()); } } + else { + View errorView = getLayoutInflater().inflate(R.layout.activity_erroralert, null); + AlertDialog.Builder builder2 = new AlertDialog.Builder(getActivity()); + builder2.setView(errorView); + builder2.setPositiveButton("OK", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) {} + }); + AlertDialog dialog2 = builder2.create(); + dialog2.show(); + } } }); builder.setNegativeButton("No", new DialogInterface.OnClickListener() { diff --git a/Listify/app/src/main/res/layout/activity_erroralert.xml b/Listify/app/src/main/res/layout/activity_erroralert.xml new file mode 100644 index 0000000..aaa6225 --- /dev/null +++ b/Listify/app/src/main/res/layout/activity_erroralert.xml @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file