package com.apps.adrcotfas.goodtime.BL;
import android.support.annotation.NonNull;
import com.apps.adrcotfas.goodtime.Util.Constants;
import androidx.work.Worker;
import de.greenrobot.event.EventBus;

public class FinishSessionWorker extends Worker{

    public final static String WORK_TAG = "Work";

    @NonNull
    @Override
    public Result doWork() {
        EventBus.getDefault().post(getTags().contains(WORK_TAG) ?
                new Constants.FinishWorkEvent() : new Constants.FinishBreakEvent());
        return Result.SUCCESS;
    }
}

@@ -248,59 +248,8 @@
 r%7B%0A%0A
-    public final static String WORK_TAG = %22Work%22;%0A%0A
     
@@ -358,16 +358,35 @@
 ins(
-WORK_TAG
+SessionType.WORK.toString()
 ) ?%0A

fix bug for session type