Frameworks: TRDS fix possible UI freeze on auto mode change

- only call on theme mode change when auto mode changes. Under special conditions
  it can happen that it is called twice
- ensure that whenever a mode change is really done to close the notification shade
- minor cleanup

Change-Id: If1ffd4c1d2c1d8b17b6e7867a42bad1776e82c0c

Conflicts:
	core/java/com/android/internal/util/slim/SlimActions.java
	services/java/com/android/server/UiModeManagerService.java