markmcavoy / androidtoken

TOTP and HOTP Token for Andriod Devices
Other
75 stars 29 forks source link

Long Click to copy PIN (diff attached) #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Long click the PIN dialog
2. Notice the lack of clipboard copying
3. Make sad face :(

What is the expected output? What do you see instead?
Would expect long pressing to copy the generated pin to the system clipboard.

What version of the product are you using? On what operating system?
Latest.

Please provide any additional information below.

I've created a patch to add this functionality (attached). I've really changed 
3 things:

1. Bump minSdkVersion to "4", this was actually need in the unpatched version 
for the largeScreens... etc android params in the manifest.

2. Removed the 10 second time out (annoyed me that I had to memorize the pin in 
10 seconds and then it's gone forever.

3. Added setOnLongClickListener to the PIN dialog TextView so long pressing the 
PIN copies it to the clipboard (and displays a toast notification that it did 
so).

Not sure if anyone is actively developing this project anymore...

Original issue reported on code.google.com by timekillerj on 25 Aug 2011 at 6:42

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bitetheb...@gmail.com on 24 Jan 2013 at 2:51