mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-11 20:15:04 -05:00
53dd47044b
* EntryOutput is passed to CopyToClipboardService * Modifications of EntryOutput are passed to plugins to enable actions on added fields * PluginDatabase checks if Plugin is still installed and always updates the list of plugins (had an issue where a plugin had a request token but was not in pluginList) * first version of QR plugin implemented
35 lines
630 B
C#
35 lines
630 B
C#
using System;
|
|
using Android.App;
|
|
using Android.Content;
|
|
using Android.OS;
|
|
using Android.Runtime;
|
|
using Android.Widget;
|
|
using KeePassLib.Security;
|
|
|
|
namespace keepass2android
|
|
{
|
|
[Service]
|
|
public class CopyToClipboardService: Service
|
|
{
|
|
public CopyToClipboardService()
|
|
{
|
|
|
|
}
|
|
|
|
public CopyToClipboardService(IntPtr javaReference, JniHandleOwnership transfer)
|
|
: base(javaReference, transfer)
|
|
{
|
|
}
|
|
|
|
|
|
public static void CopyValueToClipboardWithTimeout(Context ctx, string text)
|
|
{
|
|
Toast.MakeText(ctx, text, ToastLength.Short).Show();
|
|
}
|
|
|
|
public override IBinder OnBind(Intent intent)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
} |