Merge "Use fragment context in AppHeaderController"

This commit is contained in:
TreeHugger Robot
2017-03-22 20:59:23 +00:00
committed by Android (Google) Code Review
3 changed files with 20 additions and 10 deletions

View File

@@ -90,7 +90,7 @@ public class AppHeaderController {
if (appHeader != null) {
mAppHeader = appHeader;
} else {
mAppHeader = LayoutInflater.from(mContext)
mAppHeader = LayoutInflater.from(fragment.getContext())
.inflate(R.layout.app_details, null /* root */);
}
}