From 36d629010253d048cae2d9a9aa34e6766a8b91c5 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 15 Jul 2014 15:46:26 +0200 Subject: [PATCH] Not testing this right now This was tested before, now I need quick access to another screens so this is quicker than entering login. --- .../nerull7/mysqlbrowser/db/DatabaseConnector.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/info/nerull7/mysqlbrowser/db/DatabaseConnector.java b/app/src/main/java/info/nerull7/mysqlbrowser/db/DatabaseConnector.java index 34cb061..14eb7bb 100644 --- a/app/src/main/java/info/nerull7/mysqlbrowser/db/DatabaseConnector.java +++ b/app/src/main/java/info/nerull7/mysqlbrowser/db/DatabaseConnector.java @@ -25,13 +25,13 @@ public class DatabaseConnector { // TODO Real checking public static boolean checkLogin(String login, String password, String url){ - if (login.compareTo("nerull7")==0) +// if (login.compareTo("nerull7")==0) return true; - if(password.compareTo("")==0) - errorMsg = "No Password"; - else - errorMsg = "I don't know"; - return false; +// if(password.compareTo("")==0) +// errorMsg = "No Password"; +// else +// errorMsg = "I don't know"; +// return false; } public void setDatabaseInUse(String database){ @@ -68,6 +68,7 @@ public class DatabaseConnector { stringList.add("Field 2"); stringList.add("Field 3"); stringList.add("Field 4"); + stringList.add("Field 5"); return stringList; } @@ -82,6 +83,7 @@ public class DatabaseConnector { stringList.add("Data 2"+i); stringList.add("Data 3"+i); stringList.add("Data 4"+i); + stringList.add("Field aaa aaaaaaaa aaaaaa aaaaa4"+i); stringListList.add(stringList); } return stringListList;