diff --git a/Listify/app/src/main/java/com/example/listify/AuthManager.java b/Listify/app/src/main/java/com/example/listify/AuthManager.java index 7e38e72..c00c8eb 100644 --- a/Listify/app/src/main/java/com/example/listify/AuthManager.java +++ b/Listify/app/src/main/java/com/example/listify/AuthManager.java @@ -117,7 +117,6 @@ public class AuthManager { error -> setAuthError(error) ); throwIfAuthError(); - } public void confirmSignUp(String confirmationCode) throws AuthException { diff --git a/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java b/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java index 6e7b513..68ec5e2 100644 --- a/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java +++ b/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java @@ -26,7 +26,7 @@ import java.util.Properties; public class HomeFragment extends Fragment { private Button toLoginPage; - private Button toListPage; + private Button toDeleteAccountPage; public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = inflater.inflate(R.layout.fragment_home, container, false); @@ -40,13 +40,10 @@ public class HomeFragment extends Fragment { } }); - toListPage = (Button) root.findViewById(R.id.button2); - toListPage.setOnClickListener(new View.OnClickListener() { + toDeleteAccountPage = (Button) root.findViewById(R.id.button2); + toDeleteAccountPage.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - //Intent intent = new Intent(HomeFragment.this.getActivity(), com.example.listify.ListPage.class); - //startActivity(intent); - try { Properties configs = new Properties(); try { diff --git a/Listify/app/src/main/res/layout/fragment_home.xml b/Listify/app/src/main/res/layout/fragment_home.xml index f43f76a..ecc63ce 100644 --- a/Listify/app/src/main/res/layout/fragment_home.xml +++ b/Listify/app/src/main/res/layout/fragment_home.xml @@ -10,39 +10,20 @@ android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginBottom="25dp" - android:layout_marginEnd="25dp" + android:layout_marginBottom="40dp" android:text="Log in" - app:layout_constraintBottom_toTopOf="@+id/button2" - app:layout_constraintEnd_toEndOf="@+id/button2" /> + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" />