X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/8e36e7cc3e6218ccb80ee2af3eb0a19df24e339f..5dc43aab3cc1243f9989dd6a0c7dd3350c3f709b:/src/com/owncloud/android/ui/fragment/ConfirmationDialogFragment.java diff --git a/src/com/owncloud/android/ui/fragment/ConfirmationDialogFragment.java b/src/com/owncloud/android/ui/fragment/ConfirmationDialogFragment.java index 679b2b9c..d528b341 100644 --- a/src/com/owncloud/android/ui/fragment/ConfirmationDialogFragment.java +++ b/src/com/owncloud/android/ui/fragment/ConfirmationDialogFragment.java @@ -3,9 +3,8 @@ * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -23,7 +22,6 @@ import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; -import android.util.Log; import com.actionbarsherlock.app.SherlockDialogFragment; import com.owncloud.android.Log_OC; @@ -37,6 +35,8 @@ public class ConfirmationDialogFragment extends SherlockDialogFragment { public final static String ARG_NEUTRAL_BTN_RES = "neutral_btn_res"; public final static String ARG_NEGATIVE_BTN_RES = "negative_btn_res"; + public static final String FTAG_CONFIRMATION = "CONFIRMATION_FRAGMENT"; + private ConfirmationDialogFragmentListener mListener; /** @@ -91,6 +91,7 @@ public class ConfirmationDialogFragment extends SherlockDialogFragment { new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { mListener.onConfirmation(getTag()); + dialog.dismiss(); } }); if (neuBtn != -1) @@ -98,6 +99,7 @@ public class ConfirmationDialogFragment extends SherlockDialogFragment { new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { mListener.onNeutral(getTag()); + dialog.dismiss(); } }); if (negBtn != -1) @@ -106,6 +108,7 @@ public class ConfirmationDialogFragment extends SherlockDialogFragment { @Override public void onClick(DialogInterface dialog, int which) { mListener.onCancel(getTag()); + dialog.dismiss(); } }); return builder.create();