Skip to content

Commit 83394c7

Browse files
committed
onBind template
1 parent a3af313 commit 83394c7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pythonforandroid/bootstraps/service_only/build/templates/Service.tmpl.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ public static void stop(Context ctx) {
5050
ctx.stopService(intent);
5151
}
5252

53+
/**
54+
* {@inheritDoc}
55+
*/
56+
@Override
57+
public IBinder onBind(Intent intent) {
58+
return mBinder;
59+
}
60+
5361
/**
5462
* Class used for the client Binder. Because we know this service always
5563
* runs in the same process as its clients, we don't need to deal with IPC.
@@ -60,12 +68,4 @@ public class Service{{ name|capitalize }}Binder extends Binder {
6068
return Service{{ name|capitalize }}.this;
6169
}
6270
}
63-
64-
/**
65-
* {@inheritDoc}
66-
*/
67-
@Override
68-
public IBinder onBind(Intent intent) {
69-
return mBinder;
70-
}
7171
}

0 commit comments

Comments
 (0)