make sure titlebar can be attached

     Bug: 5110201
     remove title bar from parent if it already has a parent

Change-Id: I9616605004da70b8162ae5bc19a40c1c0418dc55
1 file changed