ui: google: fix alert dialog showing up on multiple instances for device spoof

The spoof alert was showing up twice which isn't the desired
functionality. Partial revert and fix of commit
7e7e16c8

Also patch up the indentation for the files.

Signed-off-by: Sumit Pundir <pundirsumit11@gmail.com>
2 jobs for sprint_kingston in 8 minutes and 39 seconds
Status Job ID Name Coverage
  Build
passed #89675
build

00:08:39

canceled #85952
build

00:00:24