Only set view id in tablet mode

Change-Id: Id1201795dc9a9f44f30b002cd0ebce957aade209