Fix #28 Note »Copy« function really needed?

This commit is contained in:
Stefan Niedermann 2015-10-25 16:44:47 +01:00
parent f6fdc80824
commit 057e136b92
2 changed files with 8 additions and 8 deletions

View file

@ -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);
}

View file

@ -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"/>
<item
android:title="@string/menu_share"
app:showAsAction="never"/>
<!--item
android:id="@+id/menu_copy"
android:icon="@drawable/ic_action_copy"
android:orderInCategory="110"
app:showAsAction="never"
android:title="@string/menu_copy"/>
android:title="@string/menu_copy"/-->
<item
android:id="@+id/menu_delete"
android:icon="@drawable/ic_action_delete"
android:orderInCategory="120"
app:showAsAction="never"
android:title="@string/menu_delete"/>
android:title="@string/menu_delete"
app:showAsAction="never"/>
</menu>