Add sign out
This commit is contained in:
1 parent
7ae50430f8
commit
664e830c7b
14 files changed
+117
-10
No files matched your search
@@ -115,6 +115,12 @@ public class EhUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static void signOut(Context context) {
|
||||
EhApplication.getEhCookieStore(context).signOut();
|
||||
Settings.putAvatar(null);
|
||||
Settings.putDisplayName(null);
|
||||
}
|
||||
|
||||
public static boolean hasSignedIn(Context context) {
|
||||
return EhApplication.getEhCookieStore(context).hasSignedIn();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user