Use fragment context in AppHeaderController

The application context doesn't have the correct theme, use
fragment context instead

Fix: 36489386
Fix: 36516826
Test: RunSettingsRoboTests & Screenshot
Change-Id: I8285584220796264d85ea570df5b1df6ebeb275f
This commit is contained in:
jackqdyulei
2017-03-21 18:30:21 -07:00
parent e39e8350a1
commit abba040727
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 */);
}
}