Toast.makeText remove
parent
1f18d5d928
commit
34dc1cb8a2
|
|
@ -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()));
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue