Fix restore from keyboard

The keyboard starts up before the restore process and the default shared
preferences are cached and used even after the restore.

Bug: 17837918
Change-Id: I2669e377b6e95813657fd6a80fbff4472330e3aa
(cherry picked from commit e9d814674b9c94d61b474f58633a75afb7d2a616)
1 file changed