calabash-android 0.4.22.pre3 → 0.4.22.pre4

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: 6d221e4c80dd7613507106fb29b003b973f7bb90
4
- data.tar.gz: 00acef8ea096b2fadd7d4d78a3351fdc14e080f6
3
+ metadata.gz: b08ffe174ecf3dde1f1f58a609148b6f338b2114
4
+ data.tar.gz: f60f07366df805990cca8d49dc4516e9d3ad6c96
5
5
  SHA512:
6
- metadata.gz: ca7532fbf81f589c0a34b889db471ac9ce0730240dcd2cfde663271f937319e0784194575d4feb1993271f1c3936cc88be175fe4a2114507ee1113901ba0e0e7
7
- data.tar.gz: 1e5a8fceb981f4508120066a950ffde01fbb2744f1b501429162f2a36609ebc0c54f171f450b6ccf4647d3ba1ab9f521e3206e3bf73a1ccc6d1aeeee08d3d651
6
+ metadata.gz: 846aa7dc192a504a2461c9e8d69f7f8d2c55854a0dd87bdf860d6964fa6d71b7af8aaef2848170c0b6111b8279a69f91bf3bd4269c02b344b50179903db11bc9
7
+ data.tar.gz: 41d381af7fb3f41bb805985b85508e4f40f5627dacf5d91f85f8a7bc5722b64807d07cf4fa5e1afddefd4e4d0b51f5e52699c90c40f699d8b36feaac290c3c08
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.4.22.pre3"
3
+ VERSION = "0.4.22.pre4"
4
4
  end
5
5
  end
@@ -41,14 +41,7 @@ public class KeyboardEnterText implements Action {
41
41
  }
42
42
 
43
43
  InputConnection getInputConnection() {
44
- Activity currentActivity = InstrumentationBackend.solo.getCurrentActivity();
45
- final View view = currentActivity.getCurrentFocus();
46
-
47
- Context context = view.getContext();
48
-
49
- if (context == null) {
50
- context = currentActivity.getApplicationContext();
51
- }
44
+ Context context = InstrumentationBackend.instrumentation.getTargetContext();
52
45
 
53
46
  try {
54
47
  InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
@@ -59,4 +52,4 @@ public class KeyboardEnterText implements Action {
59
52
  throw new RuntimeException(e);
60
53
  }
61
54
  }
62
- }
55
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.22.pre3
4
+ version: 0.4.22.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-06 00:00:00.000000000 Z
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber