File tree 1 file changed +16
-16
lines changed
app/src/main/java/tk/therealsuji/vtopchennai
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,22 @@ public void onReceiveValue(String value) {
112
112
});
113
113
}
114
114
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
+
115
131
/*
116
132
Function to open the sign in page
117
133
*/
@@ -144,22 +160,6 @@ public void onReceiveValue(String value) {
144
160
});
145
161
}
146
162
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
-
163
163
/*
164
164
Function to get the captcha from the portal's sign in page and load it into the ImageView
165
165
*/
You can’t perform that action at this time.
0 commit comments