This repository was archived by the owner on Jul 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/src/main/java/com/zulip/android/activities Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1919import android .util .Patterns ;
2020import android .view .View ;
2121import android .view .inputmethod .InputMethodManager ;
22- import android .webkit .URLUtil ;
2322import android .widget .Button ;
2423import android .widget .EditText ;
2524import android .widget .ImageView ;
4140import com .zulip .android .networking .util .DefaultCallback ;
4241import com .zulip .android .util .ActivityTransitionAnim ;
4342import com .zulip .android .util .AnimationHelper ;
44- import com .zulip .android .util .Constants ;
4543import com .zulip .android .util .CommonProgressDialog ;
44+ import com .zulip .android .util .Constants ;
4645
4746import org .json .JSONException ;
4847import org .json .JSONObject ;
@@ -263,10 +262,10 @@ public void onSaveInstanceState(Bundle savedInstanceState) {
263262
264263 private boolean isUrlValid (String url ) {
265264 if (BuildConfig .DEBUG ) {
266- return URLUtil . isValidUrl (String .valueOf (url )) ||
265+ return Patterns . WEB_URL . matcher (String .valueOf (url )). matches ( ) ||
267266 Patterns .IP_ADDRESS .matcher (url ).matches ();
268267 } else {
269- return URLUtil . isValidUrl (String .valueOf (url ));
268+ return Patterns . WEB_URL . matcher (String .valueOf (url )). matches ( );
270269 }
271270 }
272271
You can’t perform that action at this time.
0 commit comments