package com.fsck.k9.helper;

import android.content.ClipData;
import android.content.Context;


/**
 * Access the system clipboard using the new {@link ClipboardManager} introduced with API 11
 */
public class ClipboardManager {
    public static ClipboardManager getInstance(Context context) {
        Context appContext = context.getApplicationContext();
        return new ClipboardManager(appContext);
    }


    protected Context mContext;

    /**
     * Constructor
     *
     * @param context
     *         A {@link Context} instance.
     */
    protected ClipboardManager(Context context) {
        mContext = context;
    }

    /**
     * Copy a text string to the system clipboard
     *
     * @param label
     *         User-visible label for the content.
     * @param text
     *         The actual text to be copied to the clipboard.
     */
    public void setText(String label, String text) {
        android.content.ClipboardManager clipboardManager =
                (android.content.ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
        ClipData clip = ClipData.newPlainText(label, text);
        clipboardManager.setPrimaryClip(clip);
    }
}

@@ -413,23 +413,21 @@
 %0A%0A    pr
-otec
+iva
 te
-d
  Context
@@ -427,18 +427,17 @@
 Context 
-mC
+c
 ontext;%0A
@@ -445,124 +445,15 @@
     
-/**%0A     * Constructor%0A     *%0A     * @param context%0A     *         A %7B@link Context%7D instance.%0A     */%0A    protected
+private
  Cli
@@ -493,18 +493,22 @@
         
-mC
+this.c
 ontext =
@@ -917,10 +917,9 @@
 er) 
-mC
+c
 onte

Clean up ClipboardManager