Possibly fix crash by using context.getLayoutInflater instead of fragment