Only set view id in tablet mode

Change-Id: Id1201795dc9a9f44f30b002cd0ebce957aade209
Merge remote-tracking branch 'sgt7/cm-10.1' into cm-10.1-sgt7