Example usage for android.content.pm ShortcutInfo getLongLabel

List of usage examples for android.content.pm ShortcutInfo getLongLabel

Introduction

In this page you can find the example usage for android.content.pm ShortcutInfo getLongLabel.

Prototype

@Nullable
public CharSequence getLongLabel() 

Source Link

Document

Return the long description of a shortcut.

Usage

From source file:com.farmerbb.taskbar.activity.ContextMenuActivity.java

@TargetApi(Build.VERSION_CODES.N_MR1)
private CharSequence getShortcutTitle(ShortcutInfo shortcut) {
    CharSequence longLabel = shortcut.getLongLabel();
    if (longLabel != null && longLabel.length() > 0 && longLabel.length() <= 20)
        return longLabel;
    else// w w  w  .j  a va2  s  .c  om
        return shortcut.getShortLabel();
}