Fix layout recreation check

Change I7d6b088a9235362e03cb6694392df71bbf5a323a added a relayout
for programmatic text direction changes, but this is breaking some
fixed layouts. Make sure layout params exist before trying to
act on them

Change-Id: Ibfe3daa71490d109c9a4bdc4c90cbf9517e53260
[1/2] Improve flash availability check.

* Use simple overlay, default false.

PS2: Add header and proper symbol.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I40458959d738fbd82941a19ff1ffcfa236bffcb9

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/pa_symbols.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java

Conflicts:
	core/res/res/values/ras_symbols.xml

Conflicts:
	core/res/res/values/ras_symbols.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java