Bug 1032070 - [Settings] add done feature in onBeforsShow()

Please remember to remove the code before merging.