src/main/java/de/blau/android/prefs/PresetEditorActivity.java
/**
             * Show a simple message box detailing the download result. The activity will end as soon as the box is
             * closed.
             * 
             * @param msgResID string resource id of message
             */
Show a simple message box detailing the download result. The activity will end as soon as the box is
closed.

@param msgResID string resource id of message
Show a simple message box detailing the download result . The activity will end as soon as the box is closed . @param msgResID string resource id of message
private void msgbox(int msgResID) {
                AlertDialog.Builder box = new AlertDialog.Builder(activity);
                box.setMessage(activity.getResources().getString(msgResID));
                box.setOnCancelListener(dialog -> activity.sendResultIfApplicable(item));
                box.setPositiveButton(R.string.okay, (dialog, which) -> {
                    dialog.dismiss();
                    activity.sendResultIfApplicable(item);
                });
                box.show();
            }
private void msgbox ( int msgResID ) { AlertDialog . Builder box = new AlertDialog . Builder ( activity ) ; box . setMessage ( activity . getResources ( ) . getString ( msgResID ) ) ; box . setOnCancelListener ( dialog -> activity . sendResultIfApplicable ( item ) ) ; box . setPositiveButton ( R . string . okay , ( dialog , which ) -> { dialog . dismiss ( ) ; activity . sendResultIfApplicable ( item ) ; } ) ; box . show ( ) ; }
Show a simple message box detailing the download result.
Show a simple message box detailing the download result .