Method to scale the floating window as the code was duplicated.

Conflicts:
	core/java/android/app/Activity.java