nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e8a912
)
lib/android: use a global reference for `Bundle::native_bundle`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 24 Aug 2015 17:26:31 +0000
(13:26 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 27 Aug 2015 01:20:54 +0000
(21:20 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/android/bundle/bundle.nit
patch
|
blob
|
history
diff --git
a/lib/android/bundle/bundle.nit
b/lib/android/bundle/bundle.nit
index
76babb4
..
82bea46
100644
(file)
--- a/
lib/android/bundle/bundle.nit
+++ b/
lib/android/bundle/bundle.nit
@@
-425,7
+425,7
@@
end
# A class mapping `String` keys to various value types
class Bundle
- private var native_bundle: NativeBundle = new NativeBundle is lazy
+ private var native_bundle: NativeBundle = (new NativeBundle).new_global_ref is lazy
# Get a new `Bundle` wrapping `native_bundle`
init from(native_bundle: NativeBundle) do self.native_bundle = native_bundle