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

Commit 84a798b6 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

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

am: 2dbafdae

Change-Id: If5226cc706095de9d25cf6d73128407d860c763d
parents c0bad3ca 2dbafdae
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: