Toast.makeText remove
parent
1f18d5d928
commit
34dc1cb8a2
|
|
@ -37,8 +37,7 @@ public class AuthorizationHandlerImpl implements AuthorizationCallbackHandler {
|
||||||
@Override
|
@Override
|
||||||
public void onCompleted(ru.m4bank.mpos.service.result.Result result) {
|
public void onCompleted(ru.m4bank.mpos.service.result.Result result) {
|
||||||
plugin.getActivity().runOnUiThread(() -> {
|
plugin.getActivity().runOnUiThread(() -> {
|
||||||
Toast.makeText(plugin.getActivity(), result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()),
|
//Toast.makeText(plugin.getActivity(), result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()), Toast.LENGTH_SHORT).show();
|
||||||
Toast.LENGTH_SHORT).show();
|
|
||||||
AmanDao<String> dao = new AmanDao<>();
|
AmanDao<String> dao = new AmanDao<>();
|
||||||
dao.setSuccess(ResultType.SUCCESSFUL.equals(result.getResultType()));
|
dao.setSuccess(ResultType.SUCCESSFUL.equals(result.getResultType()));
|
||||||
dao.setMsg(result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()));
|
dao.setMsg(result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()));
|
||||||
|
|
@ -59,8 +58,8 @@ public class AuthorizationHandlerImpl implements AuthorizationCallbackHandler {
|
||||||
@Override
|
@Override
|
||||||
public void onCompleted(ru.m4bank.mpos.service.result.Result result, AuthorizationResponse authorizationResponse) {
|
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()),
|
plugin.getActivity().runOnUiThread(() -> {
|
||||||
Toast.LENGTH_SHORT).show();
|
//Toast.makeText(plugin.getActivity(), result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()), Toast.LENGTH_SHORT).show();
|
||||||
AmanDao<String> dao = new AmanDao<>();
|
AmanDao<String> dao = new AmanDao<>();
|
||||||
dao.setSuccess(ResultType.SUCCESSFUL.equals(result.getResultType()));
|
dao.setSuccess(ResultType.SUCCESSFUL.equals(result.getResultType()));
|
||||||
dao.setMsg(result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()));
|
dao.setMsg(result.getResultType() + " " + (result.getDescription() == null ? "" : result.getDescription()));
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ public class ConnectionCheckHandlerImpl implements CheckConnectionCallbackHandle
|
||||||
@Override
|
@Override
|
||||||
public void onCompleted(CheckConnectionExternalResult result) {
|
public void onCompleted(CheckConnectionExternalResult result) {
|
||||||
activity.runOnUiThread(() -> {
|
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<>();
|
AmanDao<String> dao = new AmanDao<>();
|
||||||
dao.setSuccess(true);
|
dao.setSuccess(true);
|
||||||
dao.setMsg("OK");
|
dao.setMsg("OK");
|
||||||
|
|
@ -36,7 +36,7 @@ public class ConnectionCheckHandlerImpl implements CheckConnectionCallbackHandle
|
||||||
@Override
|
@Override
|
||||||
public void onWrongApiCalled() {
|
public void onWrongApiCalled() {
|
||||||
activity.runOnUiThread(() -> {
|
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<>();
|
AmanDao<String> dao = new AmanDao<>();
|
||||||
dao.setSuccess(false);
|
dao.setSuccess(false);
|
||||||
dao.setMsg("error");
|
dao.setMsg("error");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue