diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-06-08 20:10:58 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-06-08 20:10:58 +0200 |
| commit | 75ef80dc91bea395f7c7d089d8ca16b83d93e01f (patch) | |
| tree | 9a6d88658d2a5c5bf026e4a845e8dc48fd30b22d /main/src/cgeo/geocaching/LogViewHolder.java | |
| parent | 88eda55ecfd95e562f7af410fa374f8d22eb6c9e (diff) | |
| download | cgeo-75ef80dc91bea395f7c7d089d8ca16b83d93e01f.zip cgeo-75ef80dc91bea395f7c7d089d8ca16b83d93e01f.tar.gz cgeo-75ef80dc91bea395f7c7d089d8ca16b83d93e01f.tar.bz2 | |
refactoring: reduce duplicated code
Diffstat (limited to 'main/src/cgeo/geocaching/LogViewHolder.java')
| -rw-r--r-- | main/src/cgeo/geocaching/LogViewHolder.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/LogViewHolder.java b/main/src/cgeo/geocaching/LogViewHolder.java index 1fb3f55..14148d0 100644 --- a/main/src/cgeo/geocaching/LogViewHolder.java +++ b/main/src/cgeo/geocaching/LogViewHolder.java @@ -1,13 +1,14 @@ package cgeo.geocaching; import butterknife.InjectView; -import butterknife.Views; + +import cgeo.geocaching.ui.AbstractViewHolder; import android.view.View; import android.widget.ImageView; import android.widget.TextView; -public class LogViewHolder { +public class LogViewHolder extends AbstractViewHolder { @InjectView(R.id.added) protected TextView date ; @InjectView(R.id.type) protected TextView type; @InjectView(R.id.author) protected TextView author; @@ -19,14 +20,13 @@ public class LogViewHolder { private int position; public LogViewHolder(View rowView) { - Views.inject(this, rowView); - rowView.setTag(this); + super(rowView); } /** * Read the position of the cursor pointed to by this holder. <br/> * This must be called by the UI thread. - * + * * @return the cursor position */ public int getPosition() { @@ -36,7 +36,7 @@ public class LogViewHolder { /** * Set the position of the cursor pointed to by this holder. <br/> * This must be called by the UI thread. - * + * * @param position * the cursor position */ |
