Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
TypedView needs to extend TypedViewHolder to do anything
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hamblen committed Jul 17, 2010
1 parent 74abb26 commit 042835c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/TypedResources.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ trait TypedResources extends AndroidProject {
| def view: View
| def findView[T](tr: TypedResource[T]) = view.findViewById(tr.id).asInstanceOf[T]
|}
|trait TypedView extends View { def view = this }
|trait TypedView extends View with TypedViewHolder { def view = this }
|trait TypedActivityHolder {
| def activity: Activity
| def findView[T](tr: TypedResource[T]) = activity.findViewById(tr.id).asInstanceOf[T]
Expand Down

0 comments on commit 042835c

Please sign in to comment.