calabash-android 0.4.9.pre1 → 0.4.9.pre2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b64a4d3ad951ea41eb7aaa04b1048277c0d5870b
4
- data.tar.gz: 6a499be88df0feb60f24634fd54751561fd4e03b
3
+ metadata.gz: a3fab2a76c6cc2a3bf77ae148335958aff340aee
4
+ data.tar.gz: 3c226619ad79a99a983804ce4d1beb5493dc2fa4
5
5
  SHA512:
6
- metadata.gz: 470cbd5b68524a526cc62667f941da3fb56ef2416f9cd62262dad59e7c10593d2ed561ea8abf1b95099d402c870b186149ad4189d74cd409418bbc47657014fb
7
- data.tar.gz: 0e0010e67bc27f489026f727c5d356b884e75a1616cf4377339f52267c758e8bac112dbd0250871dbcfae5e4d9741f97c2eb7ab339e9973a4a1a6276dff3503b
6
+ metadata.gz: 089f8c510215dd629d917750ba4da0331f6e10581f94e2791552e7736d04eb9b6870f04f40b71afafc5392149c0855db5a4b83b2ff33a5446cdc881516971c31
7
+ data.tar.gz: 6cf4519e2285e506875f58a72d84c8f05912cb6c2a27f1edda1947bd9d9370f649fb3be8da93a2b2932adda633199723a2a01f8180b4e987aa25e50dc7513a76
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.4.9.pre1"
3
+ VERSION = "0.4.9.pre2"
4
4
  end
5
5
  end
@@ -48,19 +48,23 @@ public class CalabashChromeClient extends WebChromeClient {
48
48
  */
49
49
  Field field = getChromeClientField(webView.getClass());
50
50
  if (field == null) {
51
- throw new UnableToFindChromeClientException(webView);
51
+ mWebChromeClient = null;
52
52
  }
53
- field.setAccessible(true);
54
- try {
55
- mWebChromeClient = (WebChromeClient) field.get(webView);
56
- } catch (IllegalArgumentException e) {
57
- e.printStackTrace();
58
- throw new UnableToFindChromeClientException(e, webView);
59
- } catch (IllegalAccessException e) {
60
-
61
- e.printStackTrace();
62
- throw new UnableToFindChromeClientException(e, webView);
63
- }
53
+ else {
54
+ try {
55
+ field.setAccessible(true);
56
+ mWebChromeClient = (WebChromeClient) field.get(webView);
57
+ } catch (IllegalArgumentException e) {
58
+ e.printStackTrace();
59
+ throw new UnableToFindChromeClientException(e, webView);
60
+ } catch (IllegalAccessException e) {
61
+
62
+ e.printStackTrace();
63
+ throw new UnableToFindChromeClientException(e, webView);
64
+ }
65
+ }
66
+
67
+
64
68
  }
65
69
 
66
70
  if ( Looper.getMainLooper().getThread() == Thread.currentThread()) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9.pre1
4
+ version: 0.4.9.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen