[android][sdk] Refactor shared preferences

Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
Andrei Shkrob
2025-06-29 22:07:12 +02:00
committed by Konstantin Pastbin
parent c600a4fd5d
commit 40adb0f860
18 changed files with 137 additions and 127 deletions

View File

@@ -347,10 +347,10 @@ public class MwmActivity extends BaseMwmFragmentActivity
private void migrateOAuthCredentials()
{
if (OsmOAuth.containsOAuth1Credentials(this))
if (OsmOAuth.containsOAuth1Credentials())
{
// Remove old OAuth v1 secrets
OsmOAuth.clearOAuth1Credentials(this);
OsmOAuth.clearOAuth1Credentials();
// Notify user to re-login
dismissAlertDialog();