Skip to content

Commit ee6e7de

Browse files
committed
remove loadspinner from webclient
1 parent f5fd3c9 commit ee6e7de

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/src/main/java/mavonie/subterminal/Utils/WebClient.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ public class WebClient extends WebViewClient {
1717
public boolean shouldOverrideUrlLoading(WebView view, String url) {
1818
if (Uri.parse(url).toString().contains("?payment=true")) {
1919

20-
UIHelper.loadSpinner();
21-
2220
//Make sure user is authenticated before we allow further
2321
Call updateUser = Subterminal.getApi().getEndpoints().getUser();
2422
updateUser.enqueue(new Callback<User>() {
2523
@Override
2624
public void onResponse(Call call, Response response) {
27-
UIHelper.removeLoadSpinner();
28-
2925
if (response.isSuccessful()) {
3026
Intent scanIntent = new Intent(MainActivity.getActivity(), CardIOActivity.class);
3127

@@ -45,7 +41,6 @@ public void onResponse(Call call, Response response) {
4541
@Override
4642
public void onFailure(Call call, Throwable t) {
4743
UIHelper.toast("There was an issue contacting the server");
48-
UIHelper.removeLoadSpinner();
4944
}
5045
});
5146
}

0 commit comments

Comments
 (0)