mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-11 20:15:03 -05:00
23 lines
633 B
Java
23 lines
633 B
Java
package com.fsck.k9.helper;
|
|
|
|
import android.content.Context;
|
|
import android.text.ClipboardManager;
|
|
|
|
/**
|
|
* Access the system clipboard using the now deprecated {@link ClipboardManager}
|
|
*/
|
|
@SuppressWarnings("deprecation")
|
|
public class ClipboardManagerApi1 extends com.fsck.k9.helper.ClipboardManager {
|
|
|
|
public ClipboardManagerApi1(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
@Override
|
|
public void setText(String label, String text) {
|
|
ClipboardManager clipboardManager =
|
|
(ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
|
|
clipboardManager.setText(text);
|
|
}
|
|
}
|