X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/5a25a6a698c75d437f794f1993bbd1d281af75e9..c2abbaaedb69dba35866a48b745b68f3519cbca1:/src/com/owncloud/android/ui/activity/LogHistoryActivity.java diff --git a/src/com/owncloud/android/ui/activity/LogHistoryActivity.java b/src/com/owncloud/android/ui/activity/LogHistoryActivity.java index 64dcf0b4..0aa84753 100644 --- a/src/com/owncloud/android/ui/activity/LogHistoryActivity.java +++ b/src/com/owncloud/android/ui/activity/LogHistoryActivity.java @@ -2,9 +2,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 @@ -27,18 +26,19 @@ import android.preference.Preference; import android.preference.Preference.OnPreferenceChangeListener; import android.view.View; import android.view.View.OnClickListener; -import android.widget.Button; import android.widget.ListView; import com.actionbarsherlock.app.ActionBar; import com.actionbarsherlock.app.SherlockPreferenceActivity; import com.actionbarsherlock.view.MenuItem; import com.owncloud.android.R; +import com.owncloud.android.ui.CustomButton; import com.owncloud.android.ui.adapter.LogListAdapter; import com.owncloud.android.utils.FileStorageUtils; + public class LogHistoryActivity extends SherlockPreferenceActivity implements OnPreferenceChangeListener { String logpath = FileStorageUtils.getLogPath(); File logDIR = null; @@ -52,7 +52,8 @@ public class LogHistoryActivity extends SherlockPreferenceActivity implements On ActionBar actionBar = getSherlock().getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); ListView listView = (ListView) findViewById(android.R.id.list); - Button deleteHistoryButton = (Button) findViewById(R.id.deleteLogHistoryButton); + CustomButton deleteHistoryButton = (CustomButton) findViewById(R.id.deleteLogHistoryButton); + deleteHistoryButton.setOnClickListener(new OnClickListener() { @Override