mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-24 13:56:14 +03:00
Fix #28 Note »Copy« function really needed?
This commit is contained in:
parent
f6fdc80824
commit
057e136b92
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue