fix bugs about onresum method in SMSfragment