Commit graph

41 commits

Author SHA1 Message Date
Alexander Bakker
950c6d0cf3 Move the recycler view to its own fragment 2017-12-25 15:36:29 +01:00
Alexander Bakker
a140ba8506 Fix various issues by moving most global state logic out of MainActivity
* Move global state to a new class that overrides Application
* Make sure all preferences are stored in the same place and follow the same naming convention
2017-12-24 18:23:11 +01:00
Alexander Bakker
49a31551a0 Clean up and fix a couple of bugs in the otp update process 2017-12-13 22:19:43 +01:00
Alexander Bakker
a66d94a743 Improve key profile adapter notification code 2017-12-12 21:28:09 +01:00
Alexander Bakker
ed86d6ac8e Split KeyProfile adapter and holder, clean stuff up and fix some bugs 2017-12-12 21:08:30 +01:00
Alexander Bakker
dbc79b49e8 Save the database after a drag-drop event and stop saving it on onStop 2017-12-12 03:14:26 +01:00
Alexander Bakker
644a6d89fe Remove redundant casts
Android SDK 26 changed the signature of findViewById
2017-12-12 02:21:13 +01:00
Alexander Bakker
f952ee7df9 Abstract the key profile list away from MainActivity 2017-12-12 02:19:29 +01:00
Alexander Bakker
461f321626 Fix key profile order and clean up KeyProfileAdapter a bit 2017-12-12 01:50:00 +01:00
Alexander Bakker
9286196811 Clean up the bottom sheet code a little 2017-11-27 21:38:02 +01:00
Alexander Bakker
daf81e02e6 Add some toast 2017-11-27 21:06:23 +01:00
Alexander Bakker
277d76e467 Fix key profile sorting and simplify its logic a bit 2017-11-26 22:10:10 +01:00
Alexander Bakker
754a42b2c0 Abstract away otp refreshing 2017-11-26 19:50:05 +01:00
Alexander Bakker
c0bdd261b5 Clean things up a bit 2017-11-26 19:03:13 +01:00
Alexander Bakker
37e303626f Add an option to import a FreeOTP token file 2017-08-26 15:47:57 +02:00
Impyy
e3f4503967 Move the OTP stuff to a separate folder 2017-08-06 18:21:01 +02:00
Impyy
9de0f35104 Replaced the sqlcipher database with a custom one
Still a WIP. This change was made to allow us to use Android's SecretKey API.
Which in turn allows us to store our secret keys in the Android KeyStore.

You can read about the database file format here: doc/db.md
2017-08-06 18:21:01 +02:00
Michael Schättgen
03713c303c Added preference to show / hide issuers 2016-11-01 23:43:46 +01:00
Michael Schättgen
61149887ee Started working on the bottom sheet for editing profiles 2016-10-28 13:18:11 +02:00
Michael Schättgen
fd3db9854d Added issuer to profile card 2016-10-26 13:18:41 +02:00
Michael Schättgen
099250dd49 Added copy to clipboard onClick 2016-10-26 00:29:21 +02:00
Michael Schättgen
ded23a3ae9 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	app/src/main/java/me/impy/aegis/KeyProfileAdapter.java
2016-10-25 23:57:19 +02:00
Michael Schättgen
22524136a7 Order is now getting saved properly
Also enabled Java 8
2016-10-25 23:53:33 +02:00
Impyy
56e4e79eb2 Schedule update tasks directly on the UI handler 2016-10-06 21:49:26 +02:00
Michael Schättgen
606ce09fc7 Rearranged code and improved listview 2016-10-04 22:23:34 +02:00
Michael Schättgen
fa7e5941f1 Fixed progressbar 2016-09-29 20:47:42 +02:00
Impyy
9814b09f03 Made the progressbars go from 100 to 0 again
I accidentally reverted 470244b26cbde721ccae61aa7b891747e58c197d
2016-09-29 18:47:21 +02:00
Impyy
2128b5bf59 Made the progressbar animation somewhat smoother 2016-09-29 18:16:00 +02:00
Michael Schättgen
016cbd9ebc Progressbars now go the other way 2016-09-29 17:20:36 +02:00
Michael Schättgen
1b12dfc3e0 Added progressbars to keys 2016-09-29 12:39:50 +02:00
Michael Schättgen
ed829d004b Various fixes 2016-09-29 12:39:36 +02:00
Impyy
8063ba11f1 Initial pass on adding support for persistence using sqlcipher
To keep the database schema simple we just save the
otpauth:// url and let KeyInfo take care of checking for
validity.

This patch also includes multiple fixes for the KeyInfo
class.

We still need a separate activity to allow the user to
enter their PIN/password. Currently, "test" is used as the
password for the database.
2016-08-22 22:44:09 +02:00
Impyy
5994be2e4d Clean up unused imports 2016-08-22 16:15:07 +02:00
Impyy
555a0d673a Merge branch 'timer-timing' 2016-08-22 13:48:50 +02:00
Michael Schättgen
847d8acdd4 Replaced custom ItemClickListener and added ripple 2016-08-21 23:13:27 +02:00
Michael Schättgen
5783066e38 Added Drag and Drop support 2016-08-21 22:54:27 +02:00
Impyy
9aa4e35203 Fire off the updateCode tasks at exactly the right time 2016-08-21 22:29:58 +02:00
Michael Schättgen
0668e0639c Added itemClickListener 2016-08-21 22:24:04 +02:00
Michael Schättgen
f11145ce95 Added ImageDrawable to listview 2016-08-21 21:55:04 +02:00
Michael Schättgen
a8179865d6 Added timers to update 2016-08-16 23:02:12 +02:00
Michael Schättgen
873299a224 Added list and adapter to handle profiles 2016-08-16 20:04:38 +02:00