Search in sources :

Example 1 with FreeformHackHelper

use of com.farmerbb.taskbar.util.FreeformHackHelper in project Taskbar by farmerbb.

the class InvisibleActivityFreeform method onDestroy.

@Override
protected void onDestroy() {
    super.onDestroy();
    if (proceedWithOnCreate) {
        LocalBroadcastManager.getInstance(this).unregisterReceiver(appearingReceiver);
        LocalBroadcastManager.getInstance(this).unregisterReceiver(disappearingReceiver);
        LocalBroadcastManager.getInstance(this).unregisterReceiver(finishReceiver);
        if (!finish) {
            FreeformHackHelper helper = FreeformHackHelper.getInstance();
            helper.setFreeformHackActive(false);
            helper.setInFreeformWorkspace(false);
            finish = true;
        }
    }
}
Also used : FreeformHackHelper(com.farmerbb.taskbar.util.FreeformHackHelper)

Example 2 with FreeformHackHelper

use of com.farmerbb.taskbar.util.FreeformHackHelper in project Taskbar by farmerbb.

the class InvisibleActivityFreeform method reallyFinish.

private void reallyFinish() {
    super.finish();
    overridePendingTransition(0, 0);
    if (!finish) {
        FreeformHackHelper helper = FreeformHackHelper.getInstance();
        helper.setFreeformHackActive(false);
        helper.setInFreeformWorkspace(false);
        finish = true;
    }
}
Also used : FreeformHackHelper(com.farmerbb.taskbar.util.FreeformHackHelper)

Aggregations

FreeformHackHelper (com.farmerbb.taskbar.util.FreeformHackHelper)2