Skip to content

Commit

Permalink
Fix crashing on create AlertDialog when activity not extends from com…
Browse files Browse the repository at this point in the history
….WazaBe.HoloEverywhere.app.Activity
  • Loading branch information
Prototik committed Sep 12, 2012
1 parent 6185d05 commit 60461fb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ public interface OnPrepareListViewListener {
public AlertParams(Context context) {
mContext = context;
mCancelable = true;
mInflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
mInflater = LayoutInflater.from(context);
}

public void apply(AlertController dialog) {
Expand Down Expand Up @@ -784,4 +783,4 @@ public void setView(View view, int viewSpacingLeft, int viewSpacingTop,
mViewSpacingBottom = viewSpacingBottom;
}

}
}

0 comments on commit 60461fb

Please sign in to comment.