From 16587dc1e03e0c963c53bab5176e1ca3548cd706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Ba=C5=82aban?= Date: Tue, 15 Oct 2019 16:49:30 +0200 Subject: [PATCH] Save and check password --- Encrypted Notebook.iml | 3 +- app/src/main/AndroidManifest.xml | 4 ++ .../encryptednotebook/MainActivity.java | 41 ++++++++++++++- .../SetPasswordActivity.java | 50 +++++++++++++++++++ .../main/res/layout/activity_set_password.xml | 33 ++++++++++++ app/src/main/res/layout/content_main.xml | 11 ++++ .../main/res/layout/content_set_password.xml | 41 +++++++++++++++ app/src/main/res/values/strings.xml | 1 + 8 files changed, 180 insertions(+), 4 deletions(-) create mode 100644 app/src/main/java/com/example/encryptednotebook/SetPasswordActivity.java create mode 100644 app/src/main/res/layout/activity_set_password.xml create mode 100644 app/src/main/res/layout/content_set_password.xml diff --git a/Encrypted Notebook.iml b/Encrypted Notebook.iml index a0d23fc..0242256 100644 --- a/Encrypted Notebook.iml +++ b/Encrypted Notebook.iml @@ -12,9 +12,8 @@ - - + \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index dbb05b1..b75d80b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -10,6 +10,10 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index b9a72c8..ee30f8b 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -9,6 +9,7 @@ tools:showIn="@layout/activity_main"> + + \ No newline at end of file diff --git a/app/src/main/res/layout/content_set_password.xml b/app/src/main/res/layout/content_set_password.xml new file mode 100644 index 0000000..1137932 --- /dev/null +++ b/app/src/main/res/layout/content_set_password.xml @@ -0,0 +1,41 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0db3263..292d71d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,4 +1,5 @@ Encrypted Notebook Settings + SetPasswordActivity