Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6da81490 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "OPP: Don't reopen finished transfer list."

parents 6aa9adb5 94ac0273
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -171,6 +171,10 @@ public class BluetoothOppTransferHistory extends Activity implements


    @Override
    @Override
    public boolean onContextItemSelected(MenuItem item) {
    public boolean onContextItemSelected(MenuItem item) {
        if (mTransferCursor.getCount() == 0) {
            Log.i(TAG, "History is already cleared, not clearing again");
            return true;
        }
        mTransferCursor.moveToPosition(mContextMenuPosition);
        mTransferCursor.moveToPosition(mContextMenuPosition);
        switch (item.getItemId()) {
        switch (item.getItemId()) {
            case R.id.transfer_menu_open:
            case R.id.transfer_menu_open: