-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Description
I have code like:
class MapFragment extends Fragment with Contexts[Fragment] with SharedPreferences.OnSharedPreferenceChangeListener {
implicit var ctx:Context = _
override def onActivate(a:Activity) {
ctx = a
val locationService = new LocalServiceConnection[LocationService]
locationService.onConnected {
...
But I get:
/home/nolan/Projects/Hermes/src/main/scala/android/ui.scala:371: could not find implicit value for parameter reg: org.scaloid.common.Registerable
Error occurred in an application involving default arguments.
val locationService = new LocalServiceConnection[LocationService]
^
How do I make this custom Fragment a Registerable?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels