Example usage for android.view ActionMode getType

List of usage examples for android.view ActionMode getType

Introduction

In this page you can find the example usage for android.view ActionMode getType.

Prototype

public int getType() 

Source Link

Document

Returns the type for this action mode.

Usage

From source file:org.cafemember.ui.LaunchActivity.java

@Override
public void onActionModeStarted(ActionMode mode) {
    super.onActionModeStarted(mode);
    if (Build.VERSION.SDK_INT >= 23 && mode.getType() == ActionMode.TYPE_FLOATING) {
        return;/* www . j  av a  2  s  .c  om*/
    }
    actionBarLayout.onActionModeStarted(mode);
    if (AndroidUtilities.isTablet()) {
        rightActionBarLayout.onActionModeStarted(mode);
        layersActionBarLayout.onActionModeStarted(mode);
    }
}

From source file:org.cafemember.ui.LaunchActivity.java

@Override
public void onActionModeFinished(ActionMode mode) {
    super.onActionModeFinished(mode);
    if (Build.VERSION.SDK_INT >= 23 && mode.getType() == ActionMode.TYPE_FLOATING) {
        return;//from   w ww  .jav  a 2 s  .  co m
    }
    actionBarLayout.onActionModeFinished(mode);
    if (AndroidUtilities.isTablet()) {
        rightActionBarLayout.onActionModeFinished(mode);
        layersActionBarLayout.onActionModeFinished(mode);
    }
}