Change "view terms" to "hide terms" once clicked

metadataPanel overrides the grow() and shrink() methods in Permission
class instance, so the text is changed also when user clicks the
"view more" link inside the box.

Bug: T71233
Change-Id: I66fe57980c6f469d86e3d52b67d01e06a3a14270
Merge "Change "view terms" to "hide terms" once clicked"