Skip to content

Commit

Permalink
navbar: fix a case where nextPreviousLayout is not present (loading)
Browse files Browse the repository at this point in the history
  • Loading branch information
talklittle committed Dec 23, 2010
1 parent 9c171d3 commit 303be00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/andrewshu/android/reddit/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ static void updateNextPreviousButtons(ListActivity act, View nextPreviousView,
// If alwaysShowNextPrevious, use the navbar
if (settings.alwaysShowNextPrevious) {
nextPreviousView = act.findViewById(R.id.next_previous_layout);
if (nextPreviousView == null)
return;
View nextPreviousBorder = act.findViewById(R.id.next_previous_border_top);

if (shouldShow && nextPreviousView.getVisibility() != View.VISIBLE) {
Expand Down

0 comments on commit 303be00

Please sign in to comment.