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); } });