diff --git a/agit/src/main/java/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java b/agit/src/main/java/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java index ac7db8c1..708f5a68 100755 --- a/agit/src/main/java/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java +++ b/agit/src/main/java/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java @@ -47,7 +47,7 @@ * adapters (e.g., SectionedAdapter) that might have an * arbitrary number of rows, so it all appears seamless. */ -public class SackOfViewsAdapter extends BaseAdapter { +public abstract class SackOfViewsAdapter extends BaseAdapter { private List views = null; /** @@ -81,7 +81,7 @@ public SackOfViewsAdapter(List views) { * * @param position Position of the item whose data we want */ - public Object getItem(int position) { + public View getItem(int position) { return (views.get(position)); } @@ -169,7 +169,5 @@ public long getItemId(int position) { * @param position Position of the item whose data we want * @param parent ViewGroup containing the returned View */ - protected View newView(int position, ViewGroup parent) { - throw new RuntimeException("You must override newView()!"); - } -} \ No newline at end of file + protected abstract View newView(int position, ViewGroup parent) ; +}