mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 20:00:50 +00:00
Add swipeRefreshLayout
This commit is contained in:
@@ -40,7 +40,7 @@ import retrofit2.Callback;
|
||||
import retrofit2.Response;
|
||||
|
||||
public class Common {
|
||||
public static final String BASE_URL = "https://foodify-backend-production.up.railway.app/api/";
|
||||
public static final String BASE_URL = "http://192.168.1.183:8080/api/";
|
||||
public static String FCM_TOKEN = null;
|
||||
public static Location CURRENT_LOCATION = null;
|
||||
public static final String MAP_API = "AIzaSyAY14Ic32UP26Hg6GILznOfbBihiY5BUxw";
|
||||
@@ -124,6 +124,14 @@ public class Common {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void notificationDialog(Activity activity, DialogStyle dialogStyle, DialogType dialogType, String title, String message){
|
||||
new AestheticDialog.Builder(activity, dialogStyle, dialogType)
|
||||
.setTitle(title)
|
||||
.setMessage(message)
|
||||
.setCancelable(true)
|
||||
.show();
|
||||
}
|
||||
|
||||
public static void showErrorInternetConnectionNotification(Activity activity){
|
||||
new AestheticDialog.Builder(activity, DialogStyle.CONNECTIFY, DialogType.ERROR)
|
||||
.setTitle("Lỗi kết nối mạng!")
|
||||
|
||||
Reference in New Issue
Block a user