File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
diycode-app/src/main/java/com/gcssloop/diycode/utils Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 2828import android .util .Log ;
2929
3030import com .gcssloop .diycode .activity .WebActivity ;
31+ import com .gcssloop .diycode_sdk .log .Logger ;
3132
3233public class IntentUtil {
3334
@@ -40,11 +41,17 @@ public class IntentUtil {
4041 * @param url url
4142 */
4243 public static void openUrl (Context context , String url ) {
43- if (url == null || url .isEmpty ()) {
44+ if (null == url || url .isEmpty ()) {
4445 Log .i ("Diyocde" , "Url地址错误" );
4546 return ;
4647 }
47- if (Config .getSingleInstance ().isUseInsideBrowser ()) {
48+ Boolean useInside = true ;
49+ try {
50+ useInside = Config .getSingleInstance ().isUseInsideBrowser ();
51+ } catch (Exception e ){
52+ Logger .e ("类型转换错误" );
53+ }
54+ if (useInside ) {
4855 WebActivity .newInstance (context , url );
4956 } else {
5057 Intent intent = new Intent (Intent .ACTION_VIEW , Uri .parse (url ));
You can’t perform that action at this time.
0 commit comments