You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Got it. Stupid question, but what should the `???` do? What steps
related to registering the connection from the fragment does the
Registerable need to accomplish?
I have code like:
But I get:
How do I make this custom Fragment a Registerable?
Thanks.
The text was updated successfully, but these errors were encountered: