Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mytfg
mytfg-vplan-app
Commits
aefc7723
Commit
aefc7723
authored
Jan 23, 2017
by
Lennart Bader
Browse files
Enabled clearing of additional_classes on Logout
parent
f62266dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/de/mytfg/apps/vplan/api/MyTFGApi.java
View file @
aefc7723
...
...
@@ -129,6 +129,13 @@ public class MyTFGApi {
Vplan
.
clearCache
(
"morgen"
,
context
);
}
public
void
clearAdditionalClasses
()
{
SharedPreferences
preferences
=
context
.
getSharedPreferences
(
"authmanager"
,
Context
.
MODE_PRIVATE
);
preferences
.
edit
()
.
remove
(
"additional_classes"
)
.
apply
();
}
/**
* Generates the device ID passed to the API.
* @return The device ID.
...
...
@@ -191,6 +198,7 @@ public class MyTFGApi {
.
remove
(
"token"
)
.
remove
(
"device"
)
.
remove
(
"expire"
)
.
remove
(
"additional_classes"
)
.
apply
();
if
(
deleteUsername
)
{
preferences
.
edit
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment