spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java
private void paste(@IntRange(from = 0) int min, @IntRange(from = 0) int max) {
        if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB) {
            android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE);
            MentionsEditable text = getMentionsText();
            text.replace(text.length(), text.length(), clipboard.getText());
        } else {
            pasteHoneycombImpl(min, max);
        }
    }
private void paste(@IntRange(from = 0) int min, @IntRange(from = 0) int max) {
        if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB) {
            android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE);
            MentionsEditable text = getMentionsText();
            text.replace(text.length(), text.length(), clipboard.getText());
        } else {
            pasteHoneycombImpl(min, max);
        }
    }
private void paste ( @ IntRange ( from = 0 ) int min , @ IntRange ( from = 0 ) int max ) { if ( android . os . Build . VERSION . SDK_INT < android . os . Build . VERSION_CODES . HONEYCOMB ) { android . text . ClipboardManager clipboard = ( android . text . ClipboardManager ) getContext ( ) . getSystemService ( Context . CLIPBOARD_SERVICE ) ; MentionsEditable text = getMentionsText ( ) ; text . replace ( text . length ( ) , text . length ( ) , clipboard . getText ( ) ) ; } else { pasteHoneycombImpl ( min , max ) ; } }
Paste clipboard content between min and max positions.
Paste clipboard content between min and max positions .