MiniumApps/launcher3/src/main/java/co/siempo/phone/activities/JunkfoodFlaggingActivity.java
/**
     * Show save dialog for saving the user filter data.
     */
Show save dialog for saving the user filter data.
Show save dialog for saving the user filter data .
private void showFirstTimeDialog() {
        AlertDialog.Builder builder = new AlertDialog.Builder
                (JunkfoodFlaggingActivity.this);
        builder.setTitle(getString(R.string.flag_app_first_time));
        builder.setMessage(R.string.flag_first_time_install);
        builder.setPositiveButton(R.string.gotit, new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int which) {
                dialog.dismiss();
            }
        });
        AlertDialog dialog = builder.create();
        dialog.show();
        dialog.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(ContextCompat.getColor(this, R.color.dialog_blue));
    }
private void showFirstTimeDialog ( ) { AlertDialog . Builder builder = new AlertDialog . Builder ( JunkfoodFlaggingActivity . this ) ; builder . setTitle ( getString ( R . string . flag_app_first_time ) ) ; builder . setMessage ( R . string . flag_first_time_install ) ; builder . setPositiveButton ( R . string . gotit , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { dialog . dismiss ( ) ; } } ) ; AlertDialog dialog = builder . create ( ) ; dialog . show ( ) ; dialog . getButton ( AlertDialog . BUTTON_POSITIVE ) . setTextColor ( ContextCompat . getColor ( this , R . color . dialog_blue ) ) ; }
Show save dialog for saving the user filter data.
Show save dialog for saving the user filter data .