[Settings] Do not set text if the fragment is not attached

Bug: 273415166
Test: loacl test
Change-Id: I5298727359191d8ce9c4526279faa4e8a3c1df43
1 file changed