/* ownCloud Android client application
* Copyright (C) 2012 Bartek Przybylski
+ * 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 3 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
package com.owncloud.android.extensions;
+import com.owncloud.android.Log_OC;
import com.owncloud.android.R;
+import com.owncloud.android.ui.CustomButton;
+
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
-import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
-import android.widget.Button;
public class ExtensionsAvailableDialog extends DialogFragment implements
OnClickListener {
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.extensions_available_dialog,
container);
- Button btnYes = (Button) view.findViewById(R.id.buttonYes);
- Button btnNo = (Button) view.findViewById(R.id.buttonNo);
+ CustomButton btnYes = (CustomButton) view.findViewById(R.id.buttonYes);
+ CustomButton btnNo = (CustomButton) view.findViewById(R.id.buttonNo);
+
btnYes.setOnClickListener(this);
btnNo.setOnClickListener(this);
getDialog().setTitle(R.string.extensions_avail_title);
getActivity().finish();
break;
default:
- Log.e("EAD", "Button with unknown id clicked " + v.getId());
+ Log_OC.e("EAD", "Button with unknown id clicked " + v.getId());
}
}