This commit is contained in:
Nezumi
2023-05-04 20:15:35 +07:00
parent d1467c633f
commit 8fa9e1c759
10 changed files with 16 additions and 3 deletions
Binary file not shown.
+3 -1
View File
@@ -96,7 +96,9 @@
<activity
android:name=".Activity.AddressManagerActivity"
android:exported="false"
android:screenOrientation="portrait" />
android:screenOrientation="portrait"
android:noHistory="true"
/>
<activity
android:name=".Activity.ChangePasswordActivity"
android:exported="false"
@@ -99,4 +99,10 @@ public class OrderActivity extends AppCompatActivity {
}
});
}
@Override
public void onBackPressed() {
super.onBackPressed();
finish();
}
}
@@ -140,7 +140,7 @@ public class HomeFragment extends Fragment {
private List<Menu> getListMenu() {
List<Menu> listMenu = new ArrayList<>();
listMenu.add(new Menu("Món ăn khuyến nghị", listFood));
listMenu.add(new Menu("Ăn gì hôm nay?", listFood));
listMenu.add(new Menu("Món ăn được thêm gần đây", recentFood));
return listMenu;
@@ -60,6 +60,7 @@ public class CancelOrderFragment extends Fragment {
//Init Component
initComponent(view);
CURRENT_PAGE = 0;
getOrderUser(CURRENT_PAGE);
orderAdapter = new OrderAdapter(getContext());
@@ -57,6 +57,7 @@ public class CompleteOrderFragment extends Fragment {
//Init Component
initComponent(view);
CURRENT_PAGE = 0;
getOrderUser(CURRENT_PAGE);
orderAdapter = new OrderAdapter(getContext());
@@ -57,6 +57,7 @@ public class PreparingFragment extends Fragment {
//Init Component
initComponent(view);
CURRENT_PAGE = 0;
getOrderUser(CURRENT_PAGE);
orderAdapter = new OrderAdapter(getContext());
@@ -58,6 +58,7 @@ public class ProcessOderFragment extends Fragment {
orderAdapter = new OrderAdapter(getContext());
CURRENT_PAGE = 0;
getOrderUser(CURRENT_PAGE);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(), RecyclerView.VERTICAL, false);
@@ -57,6 +57,7 @@ public class ShipOrderFragment extends Fragment {
//Init Component
initComponent(view);
CURRENT_PAGE = 0;
getOrderUser(CURRENT_PAGE);
orderAdapter = new OrderAdapter(getContext());
@@ -46,7 +46,7 @@
android:text="Order #123456789"
android:fontFamily="@font/koho_bold"
android:textColor="@color/primaryColor"
android:textSize="20sp"
android:textSize="18sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"