// Path: app/src/main/java/eu/basicairdata/graziano/gpslogger/GPSApplication.java
// public static final int NOT_AVAILABLE = -100000;


import static eu.basicairdata.graziano.gpslogger.GPSApplication.NOT_AVAILABLE;
import android.os.Handler;
import androidx.appcompat.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
                    break;
                case R.id.cardmenu_export:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_BULK_EXPORT_TRACKS);
                    break;
                case R.id.cardmenu_view:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_BULK_VIEW_TRACKS);
                    break;
                case R.id.cardmenu_share:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_BULK_SHARE_TRACKS);
                    break;
                case R.id.cardmenu_edit:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_EDIT_TRACK);
                    break;
                default:
                    return false;
            }
            return true;
        }
        return false;
    }

    @Override
    public void onDestroyActionMode(ActionMode mode) {
        EventBus.getDefault().unregister(this);
        if ((gpsApp.getNumberOfSelectedTracks() > 0) && gpsApp.getGPSActivityActiveTab() == 2) {
            GPSApplication.getInstance().deselectAllTracks();
// Path: app/src/main/java/eu/basicairdata/graziano/gpslogger/GPSApplication.java
// public static final int NOT_AVAILABLE = -100000;


// Path: app/src/main/java/eu/basicairdata/graziano/gpslogger/ToolbarActionMode.java
import static eu.basicairdata.graziano.gpslogger.GPSApplication.NOT_AVAILABLE;
import android.os.Handler;
import androidx.appcompat.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

                    break;
                case R.id.cardmenu_export:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_BULK_EXPORT_TRACKS);
                    break;
                case R.id.cardmenu_view:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_BULK_VIEW_TRACKS);
                    break;
                case R.id.cardmenu_share:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_BULK_SHARE_TRACKS);
                    break;
                case R.id.cardmenu_edit:
                    setActionmodeButtonPressed(true);
                    EventBus.getDefault().post(EventBusMSG.ACTION_EDIT_TRACK);
                    break;
                default:
                    return false;
            }
            return true;
        }
        return false;
    }

    @Override
    public void onDestroyActionMode(ActionMode mode) {
        EventBus.getDefault().unregister(this);
        if ((gpsApp.getNumberOfSelectedTracks() > 0) && gpsApp.getGPSActivityActiveTab() == 2) {
            GPSApplication.getInstance().deselectAllTracks();
            GPSApplication.getInstance().setLastClickId(NOT_AVAILABLE);