From f93caf345689bfcf4b37676a8b2296a0debe44fc Mon Sep 17 00:00:00 2001 From: Domagalski Date: Sat, 13 Oct 2018 13:46:50 +0200 Subject: [PATCH] fixed login remember --- .project | 17 ++++++++++++++ .settings/org.eclipse.buildship.core.prefs | 2 ++ .vscode/settings.json | 3 +++ app/.classpath | 6 +++++ app/.project | 23 +++++++++++++++++++ .../org.eclipse.buildship.core.prefs | 2 ++ .../uam/wmi/findmytutor/utils/PrefUtils.java | 2 +- 7 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .project create mode 100644 .settings/org.eclipse.buildship.core.prefs create mode 100644 .vscode/settings.json create mode 100644 app/.classpath create mode 100644 app/.project create mode 100644 app/.settings/org.eclipse.buildship.core.prefs diff --git a/.project b/.project new file mode 100644 index 0000000..9892213 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + FindMyTutorAndroid + Project FindMyTutorAndroid created by Buildship. + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.buildship.core.gradleprojectnature + + diff --git a/.settings/org.eclipse.buildship.core.prefs b/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000..e889521 --- /dev/null +++ b/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir= +eclipse.preferences.version=1 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5f3f6b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/app/.classpath b/app/.classpath new file mode 100644 index 0000000..eb19361 --- /dev/null +++ b/app/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/.project b/app/.project new file mode 100644 index 0000000..ac485d7 --- /dev/null +++ b/app/.project @@ -0,0 +1,23 @@ + + + app + Project app created by Buildship. + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.buildship.core.gradleprojectnature + + diff --git a/app/.settings/org.eclipse.buildship.core.prefs b/app/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000..b1886ad --- /dev/null +++ b/app/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir=.. +eclipse.preferences.version=1 diff --git a/app/src/main/java/com/uam/wmi/findmytutor/utils/PrefUtils.java b/app/src/main/java/com/uam/wmi/findmytutor/utils/PrefUtils.java index 0c6fe6a..24c637a 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/utils/PrefUtils.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/utils/PrefUtils.java @@ -18,7 +18,7 @@ public class PrefUtils { public static void storeApiKey(Context context, String apiKey) { SharedPreferences.Editor editor = getSharedPreferences(context).edit(); - editor.putString("API_KEY", apiKey); + editor.putString("API_KEY", apiKey).putBoolean("loggedIn",true); editor.apply(); }