X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/0bef9fdedb6701785f958e034af48c9a671e9a7a..00482b6dcb1e98da39df54374f7098b51d66bee5:/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java diff --git a/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java b/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java index 66582608..12f595a6 100644 --- a/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java +++ b/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java @@ -28,6 +28,7 @@ import android.app.Activity; import android.app.Dialog; import android.net.http.SslError; import android.os.Bundle; +import android.support.v4.app.DialogFragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -36,7 +37,6 @@ import android.view.View.OnClickListener; import android.webkit.SslErrorHandler; import android.widget.Button; -import com.actionbarsherlock.app.SherlockDialogFragment; import com.owncloud.android.R; import com.owncloud.android.lib.common.network.CertificateCombinedException; import com.owncloud.android.lib.common.network.NetworkUtils; @@ -53,7 +53,7 @@ import com.owncloud.android.ui.adapter.X509CertificateViewAdapter; * Abstract implementation of common functionality for different dialogs that * get the information about the error and the certificate from different classes. */ -public class SslUntrustedCertDialog extends SherlockDialogFragment { +public class SslUntrustedCertDialog extends DialogFragment { private final static String TAG = SslUntrustedCertDialog.class.getSimpleName(); @@ -192,7 +192,7 @@ public class SslUntrustedCertDialog extends SherlockDialogFragment { if (mHandler != null) { mHandler.cancel(); } - ((OnSslUntrustedCertListener)getSherlockActivity()).onCancelCertificate(); + ((OnSslUntrustedCertListener)getActivity()).onCancelCertificate(); } } @@ -206,7 +206,7 @@ public class SslUntrustedCertDialog extends SherlockDialogFragment { mHandler.proceed(); } if (m509Certificate != null) { - Activity activity = getSherlockActivity(); + Activity activity = getActivity(); try { NetworkUtils.addCertToKnownServersStore(m509Certificate, activity); // TODO make this asynchronously, it can take some time ((OnSslUntrustedCertListener)activity).onSavedCertificate();