mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 18:48:48 +00:00
Removed everything except Login and Delete Account buttons in Home/Profile page
This commit is contained in:
parent
85f78e3333
commit
8acf630382
@ -117,7 +117,6 @@ public class AuthManager {
|
|||||||
error -> setAuthError(error)
|
error -> setAuthError(error)
|
||||||
);
|
);
|
||||||
throwIfAuthError();
|
throwIfAuthError();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void confirmSignUp(String confirmationCode) throws AuthException {
|
public void confirmSignUp(String confirmationCode) throws AuthException {
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import java.util.Properties;
|
|||||||
|
|
||||||
public class HomeFragment extends Fragment {
|
public class HomeFragment extends Fragment {
|
||||||
private Button toLoginPage;
|
private Button toLoginPage;
|
||||||
private Button toListPage;
|
private Button toDeleteAccountPage;
|
||||||
|
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View root = inflater.inflate(R.layout.fragment_home, container, false);
|
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);
|
toDeleteAccountPage = (Button) root.findViewById(R.id.button2);
|
||||||
toListPage.setOnClickListener(new View.OnClickListener() {
|
toDeleteAccountPage.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
//Intent intent = new Intent(HomeFragment.this.getActivity(), com.example.listify.ListPage.class);
|
|
||||||
//startActivity(intent);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Properties configs = new Properties();
|
Properties configs = new Properties();
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -10,39 +10,20 @@
|
|||||||
android:id="@+id/button1"
|
android:id="@+id/button1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="25dp"
|
android:layout_marginBottom="40dp"
|
||||||
android:layout_marginEnd="25dp"
|
|
||||||
android:text="Log in"
|
android:text="Log in"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button2"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/button2" />
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button2"
|
android:id="@+id/button2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="148dp"
|
|
||||||
android:text="Delete Account"
|
android:text="Delete Account"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
<Switch
|
|
||||||
android:id="@+id/switch1"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="29dp"
|
|
||||||
android:text="Kroger"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button1"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/button1" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/textView4"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="31dp"
|
|
||||||
android:text="Search these stores:"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/switch1"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@ -7,7 +7,7 @@
|
|||||||
<string name="nav_header_desc">Navigation header</string>
|
<string name="nav_header_desc">Navigation header</string>
|
||||||
<string name="action_settings">Settings</string>
|
<string name="action_settings">Settings</string>
|
||||||
|
|
||||||
<string name="menu_home">Home</string>
|
<string name="menu_home">Profile</string>
|
||||||
<string name="menu_gallery">Gallery</string>
|
<string name="menu_gallery">Gallery</string>
|
||||||
<string name="menu_slideshow">Slideshow</string>
|
<string name="menu_slideshow">Slideshow</string>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user