Skip to content

Commit 6b32695

Browse files
committed
Updated VTOP portal URL
1 parent f304bf0 commit 6b32695

File tree

1 file changed

+16
-16
lines changed
  • app/src/main/java/tk/therealsuji/vtopchennai

1 file changed

+16
-16
lines changed

app/src/main/java/tk/therealsuji/vtopchennai/VTOP.java

+16-16
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,22 @@ public void onReceiveValue(String value) {
112112
});
113113
}
114114

115+
/*
116+
Function to reload the page using javascript in case of an error
117+
*/
118+
public void reloadPage() {
119+
loading.setText(context.getString(R.string.loading));
120+
if (loadingLayout.getVisibility() == View.INVISIBLE) {
121+
hideLayouts();
122+
loadingLayout.setVisibility(View.VISIBLE);
123+
}
124+
125+
webView.clearCache(true);
126+
webView.clearHistory();
127+
CookieManager.getInstance().removeAllCookies(null);
128+
webView.loadUrl("http://vtopcc.vit.ac.in/vtop");
129+
}
130+
115131
/*
116132
Function to open the sign in page
117133
*/
@@ -144,22 +160,6 @@ public void onReceiveValue(String value) {
144160
});
145161
}
146162

147-
/*
148-
Function to reload the page using javascript in case of an error
149-
*/
150-
public void reloadPage() {
151-
loading.setText(context.getString(R.string.loading));
152-
if (loadingLayout.getVisibility() == View.INVISIBLE) {
153-
hideLayouts();
154-
loadingLayout.setVisibility(View.VISIBLE);
155-
}
156-
157-
webView.clearCache(true);
158-
webView.clearHistory();
159-
CookieManager.getInstance().removeAllCookies(null);
160-
webView.loadUrl("http://vtopcc.vit.ac.in:8080/vtop");
161-
}
162-
163163
/*
164164
Function to get the captcha from the portal's sign in page and load it into the ImageView
165165
*/

0 commit comments

Comments
 (0)