Fix IllegalStateException when resuming Fragment and use correct inflation.