X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/279670c303c6b5e2c5a437b712e8d5ecf6f8b1a7..ff82b51e49f40155e7c340090f5ee759af2bf3ad:/src/com/owncloud/android/ui/dialog/IndeterminateProgressDialog.java diff --git a/src/com/owncloud/android/ui/dialog/IndeterminateProgressDialog.java b/src/com/owncloud/android/ui/dialog/IndeterminateProgressDialog.java index 4f9305b0..6f4b680d 100644 --- a/src/com/owncloud/android/ui/dialog/IndeterminateProgressDialog.java +++ b/src/com/owncloud/android/ui/dialog/IndeterminateProgressDialog.java @@ -1,3 +1,22 @@ +/** + * ownCloud Android client application + * + * Copyright (C) 2015 ownCloud Inc. + * + * This program is free software: you can redistribute it and/or modify + * 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 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + package com.owncloud.android.ui.dialog; import android.app.Dialog; @@ -5,12 +24,13 @@ import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.DialogInterface.OnKeyListener; import android.os.Bundle; +import android.support.v4.app.DialogFragment; import android.view.KeyEvent; -import com.actionbarsherlock.app.SherlockDialogFragment; import com.owncloud.android.R; -public class IndeterminateProgressDialog extends SherlockDialogFragment { + +public class IndeterminateProgressDialog extends DialogFragment { private static final String ARG_MESSAGE_ID = IndeterminateProgressDialog.class.getCanonicalName() + ".ARG_MESSAGE_ID"; private static final String ARG_CANCELABLE = IndeterminateProgressDialog.class.getCanonicalName() + ".ARG_CANCELABLE"; @@ -43,7 +63,7 @@ public class IndeterminateProgressDialog extends SherlockDialogFragment { dialog.setIndeterminate(true); /// set message - int messageId = getArguments().getInt(ARG_MESSAGE_ID, R.string.text_placeholder); + int messageId = getArguments().getInt(ARG_MESSAGE_ID, R.string.placeholder_sentence); dialog.setMessage(getString(messageId)); /// set cancellation behavior