Made WindowManager methods virtual