Remove deprecated setShown()