From 057e136b92ecc60ec4df45e68f48f61acc72471f Mon Sep 17 00:00:00 2001 From: Stefan Niedermann Date: Sun, 25 Oct 2015 16:44:47 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20#28=20Note=20=C2=BBCopy=C2=AB=20function?= =?UTF-8?q?=20really=20needed=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notes/android/activity/NoteActivity.java | 4 ++-- app/src/main/res/menu/menu_note_list_view.xml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NoteActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NoteActivity.java index 4a6aface..722ce831 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NoteActivity.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/NoteActivity.java @@ -81,13 +81,13 @@ public class NoteActivity extends AppCompatActivity implements View.OnClickListe note.getContent()); startActivity(shareIntent); return true; - case R.id.menu_copy: + /*case R.id.menu_copy: db = new NoteSQLiteOpenHelper(this); Note newNote = db.getNote(db.addNoteAndSync(note.getContent())); newNote.setTitle(note.getTitle() + " (" + getResources().getString(R.string.copy) + ")"); db.updateNote(newNote); finish(); - return true; + return true;*/ default: return super.onOptionsItemSelected(item); } diff --git a/app/src/main/res/menu/menu_note_list_view.xml b/app/src/main/res/menu/menu_note_list_view.xml index bc19345f..4404d2ce 100644 --- a/app/src/main/res/menu/menu_note_list_view.xml +++ b/app/src/main/res/menu/menu_note_list_view.xml @@ -6,19 +6,19 @@ android:actionProviderClass="android.widget.ShareActionProvider" android:icon="@drawable/ic_action_share" android:orderInCategory="100" - app:showAsAction="never" - android:title="@string/menu_share"/> - + + android:title="@string/menu_delete" + app:showAsAction="never"/> \ No newline at end of file