From 5f87f442c6bc66b893265a8ea3140f9a3c9ee6e6 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 1 Aug 2014 14:23:36 +0200 Subject: [PATCH] Fix not showing mysql/php errors --- .../mysqlbrowser/db/AsyncDatabaseConnector.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/info/nerull7/mysqlbrowser/db/AsyncDatabaseConnector.java b/app/src/main/java/info/nerull7/mysqlbrowser/db/AsyncDatabaseConnector.java index bab7b30..2065aea 100644 --- a/app/src/main/java/info/nerull7/mysqlbrowser/db/AsyncDatabaseConnector.java +++ b/app/src/main/java/info/nerull7/mysqlbrowser/db/AsyncDatabaseConnector.java @@ -123,16 +123,16 @@ public class AsyncDatabaseConnector { public void onFinished(String data, String error) { Listlist = null; boolean listenerData; - if(data==null) { + if(data == null) { listenerData = false; errorMsg = error; - } - else if(booleanReturnListener!=null) - listenerData = (data.compareTo("OK")==0); - else { + } else if( data.compareTo("OK") == 0){ + listenerData = true; + } else { errorMsg = data; listenerData = false; } + booleanReturnListener.onBooleanReturn(listenerData); } });