mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-22 13:48:29 +00:00
Fix notification and Order Food
This commit is contained in:
@@ -178,6 +178,7 @@ public class Cart extends AppCompatActivity {
|
||||
//Only run when get result
|
||||
if (response.code() == 200) {
|
||||
if (response.body().success == 1) {
|
||||
new Database(getBaseContext()).cleanCart();
|
||||
Toast.makeText(Cart.this, "Đặt hàng thành công!", Toast.LENGTH_SHORT).show();
|
||||
finish();
|
||||
} else {
|
||||
|
||||
@@ -16,6 +16,7 @@ import androidx.core.app.NotificationCompat;
|
||||
import com.google.firebase.messaging.FirebaseMessagingService;
|
||||
import com.google.firebase.messaging.RemoteMessage;
|
||||
import com.waterbase.foodify.Home;
|
||||
import com.waterbase.foodify.OrderStatus;
|
||||
import com.waterbase.foodify.R;
|
||||
|
||||
public class MyFirebaseMessaging extends FirebaseMessagingService {
|
||||
|
||||
Reference in New Issue
Block a user