Toast.makeText remove

backend_nfc
Serik.Uvaissov 2020-08-23 16:44:36 +06:00
parent 1f18d5d928
commit 34dc1cb8a2
2 changed files with 5 additions and 6 deletions

View File

@ -37,8 +37,7 @@ public class AuthorizationHandlerImpl implements AuthorizationCallbackHandler {
@Override
public void onCompleted(ru.m4bank.mpos.service.result.Result result) {
plugin.getActivity().runOnUiThread(() -> {
Toast.makeText(plugin.getActivity(), result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()),
Toast.LENGTH_SHORT).show();
//Toast.makeText(plugin.getActivity(), result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()), Toast.LENGTH_SHORT).show();
AmanDao<String> dao = new AmanDao<>();
dao.setSuccess(ResultType.SUCCESSFUL.equals(result.getResultType()));
dao.setMsg(result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()));
@ -59,8 +58,8 @@ public class AuthorizationHandlerImpl implements AuthorizationCallbackHandler {
@Override
public void onCompleted(ru.m4bank.mpos.service.result.Result result, AuthorizationResponse authorizationResponse) {
plugin.getActivity().runOnUiThread(() -> { Toast.makeText(plugin.getActivity(), result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()),
Toast.LENGTH_SHORT).show();
plugin.getActivity().runOnUiThread(() -> {
//Toast.makeText(plugin.getActivity(), result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()), Toast.LENGTH_SHORT).show();
AmanDao<String> dao = new AmanDao<>();
dao.setSuccess(ResultType.SUCCESSFUL.equals(result.getResultType()));
dao.setMsg(result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()));

View File

@ -23,7 +23,7 @@ public class ConnectionCheckHandlerImpl implements CheckConnectionCallbackHandle
@Override
public void onCompleted(CheckConnectionExternalResult result) {
activity.runOnUiThread(() -> {
Toast.makeText(activity, result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()) + " " + result.isOnlineRegistration(), Toast.LENGTH_SHORT).show();
//Toast.makeText(activity, result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()) + " " + result.isOnlineRegistration(), Toast.LENGTH_SHORT).show();
AmanDao<String> dao = new AmanDao<>();
dao.setSuccess(true);
dao.setMsg("OK");
@ -36,7 +36,7 @@ public class ConnectionCheckHandlerImpl implements CheckConnectionCallbackHandle
@Override
public void onWrongApiCalled() {
activity.runOnUiThread(() -> {
Toast.makeText(activity, "Wrong method has been called", Toast.LENGTH_SHORT).show();
//Toast.makeText(activity, "Wrong method has been called", Toast.LENGTH_SHORT).show();
AmanDao<String> dao = new AmanDao<>();
dao.setSuccess(false);
dao.setMsg("error");