@@ -2,7 +2,6 @@ package app
22
33import (
44 "fmt"
5- "unsafe"
65
76 "github.com/AndroidGoLab/jni"
87)
@@ -38,7 +37,10 @@ func NewIntent(vm *jni.VM) (*Intent, error) {
3837}
3938
4039// PutStringExtra calls Intent.putExtra(key, value) for string values.
41- func (i * Intent ) PutStringExtra (key , value string ) {
40+ func (i * Intent ) PutStringExtra (
41+ key string ,
42+ value string ,
43+ ) {
4244 i .VM .Do (func (env * jni.Env ) error {
4345 cls := env .GetObjectClass (i .Obj )
4446 mid , err := env .GetMethodID (cls , "putExtra" ,
@@ -61,7 +63,10 @@ func (i *Intent) PutStringExtra(key, value string) {
6163}
6264
6365// PutIntExtra calls Intent.putExtra(key, value) for int values.
64- func (i * Intent ) PutIntExtra (key string , value int32 ) {
66+ func (i * Intent ) PutIntExtra (
67+ key string ,
68+ value int32 ,
69+ ) {
6570 i .VM .Do (func (env * jni.Env ) error {
6671 cls := env .GetObjectClass (i .Obj )
6772 mid , err := env .GetMethodID (cls , "putExtra" ,
@@ -80,7 +85,10 @@ func (i *Intent) PutIntExtra(key string, value int32) {
8085}
8186
8287// PutBoolExtra calls Intent.putExtra(key, value) for boolean values.
83- func (i * Intent ) PutBoolExtra (key string , value bool ) {
88+ func (i * Intent ) PutBoolExtra (
89+ key string ,
90+ value bool ,
91+ ) {
8492 i .VM .Do (func (env * jni.Env ) error {
8593 cls := env .GetObjectClass (i .Obj )
8694 mid , err := env .GetMethodID (cls , "putExtra" ,
@@ -103,9 +111,10 @@ func (i *Intent) PutBoolExtra(key string, value bool) {
103111}
104112
105113// GetBoolExtra calls Intent.getBooleanExtra(key, defaultValue).
106- func (i * Intent ) GetBoolExtra (key string , defaultValue bool ) bool {
114+ func (i * Intent ) GetBoolExtra (
115+ key string ,
116+ defaultValue bool ,
117+ ) bool {
107118 result , _ := i .GetBooleanExtra (key , defaultValue )
108119 return result
109120}
110-
111- var _ = unsafe .Pointer (nil )
0 commit comments