Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Bjorge committed Jun 29, 2016
2 parents b6281b7 + bc45924 commit 24d89a9
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,12 @@ public void unregisterDataSetObserver(DataSetObserver observer) {
}

private FillerView getFillerView(View convertView, ViewGroup parent, View lastViewSeen) {
FillerView fillerView = (FillerView)convertView;
if (fillerView == null) {
FillerView fillerView;

if (convertView instanceof FillerView) {
fillerView = (FillerView)convertView;
}
else {
fillerView = new FillerView(mContext);
}

Expand All @@ -261,8 +265,12 @@ private FillerView getFillerView(View convertView, ViewGroup parent, View lastVi

private HeaderFillerView getHeaderFillerView(int headerPosition, View convertView,
ViewGroup parent) {
HeaderFillerView headerFillerView = (HeaderFillerView)convertView;
if (headerFillerView == null) {
HeaderFillerView headerFillerView;

if (convertView instanceof HeaderFillerView) {
headerFillerView = (HeaderFillerView)convertView;
}
else {
headerFillerView = new HeaderFillerView(mContext);
}

Expand Down

0 comments on commit 24d89a9

Please sign in to comment.