Fix the bugs about switching login/logout fragments with asking for
permission

Signed-off-by: hangermo <hangermo@hangermodeair>