app/src/main/java/com/example/iamatourist/SettingsFragment.java
private void confirmDelete() {
        final Context context = super.getContext();
        Dialog confirm = new AlertDialog.Builder(context)
                .setTitle("Empty App Galleries?")
                .setMessage("This will not delete the files from your device, and this action cannot be undone")
                .setIcon(R.drawable.ic_warning_red_24dp)
                .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        Toast.makeText(context, "Gallery deleted", Toast.LENGTH_SHORT).show();
                    }
                })
                .setNegativeButton(android.R.string.no, null).show();
    }
//TODO - Actually delete links to galleries.
Actually delete links to galleries.
Actually delete links to galleries .
private void confirmDelete() {
        final Context context = super.getContext();
        Dialog confirm = new AlertDialog.Builder(context)
                .setTitle("Empty App Galleries?")
                .setMessage("This will not delete the files from your device, and this action cannot be undone")
                .setIcon(R.drawable.ic_warning_red_24dp)
                .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        Toast.makeText(context, "Gallery deleted", Toast.LENGTH_SHORT).show();
                    }
                })
                .setNegativeButton(android.R.string.no, null).show();
    }
private void confirmDelete ( ) { final Context context = super . getContext ( ) ; Dialog confirm = new AlertDialog . Builder ( context ) . setTitle ( "Empty App Galleries?" ) . setMessage ( "This will not delete the files from your device, and this action cannot be undone" ) . setIcon ( R . drawable . ic_warning_red_24dp ) . setPositiveButton ( android . R . string . yes , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialogInterface , int i ) { Toast . makeText ( context , "Gallery deleted" , Toast . LENGTH_SHORT ) . show ( ) ; } } ) . setNegativeButton ( android . R . string . no , null ) . show ( ) ; }
TODO - Actually delete links to galleries.
TODO - Actually delete links to galleries .