ns-usbloader-mobile/app/src/main/java/com/blogspot/developersu/ns_usbloader/NsNotificationPopUp.java
Dmitry Isaenko 8bd76fdff6 Update cancel button icon
Update notification priority: no sound on modern devices when notification icon appears (in case it's not fixed for end user - application should bre re-installed)
Update games pattern image to be even more awesome
Make application theme to be applied based on user's choice when application starts.
Made disable buttons looks disable again!
2020-10-11 16:14:47 +03:00

15 lines
547 B
Java

package com.blogspot.developersu.ns_usbloader;
import android.app.AlertDialog;
import android.content.Context;
public class NsNotificationPopUp {
public static void getAlertWindow(Context context, String title, String message){
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(title)
.setMessage(message)
.setCancelable(false)
.setPositiveButton("OK", (dialogInterface, i) -> dialogInterface.dismiss());
builder.create().show();
}
}