Loading src/main/java/com/nextcloud/android/sso/helper/SingleAccountHelper.java +13 −0 Original line number Diff line number Diff line Loading @@ -64,4 +64,17 @@ public final class SingleAccountHelper { public static void reauthenticateCurrentAccount(Activity activity) throws NoCurrentAccountSelectedException, NextcloudFilesAppAccountNotFoundException, NextcloudFilesAppNotSupportedException, NextcloudFilesAppAccountPermissionNotGrantedException { AccountImporter.authenticateSingleSignAccount(activity, getCurrentSingleSignOnAccount(activity)); } public static void registerSharedPreferenceChangeListener(Context context, SharedPreferences.OnSharedPreferenceChangeListener listener) { AccountImporter.getSharedPreferences(context) .registerOnSharedPreferenceChangeListener(listener); } public static void unregisterSharedPreferenceChangeListener(Context context, SharedPreferences.OnSharedPreferenceChangeListener listener) { AccountImporter.getSharedPreferences(context) .unregisterOnSharedPreferenceChangeListener(listener); } } Loading
src/main/java/com/nextcloud/android/sso/helper/SingleAccountHelper.java +13 −0 Original line number Diff line number Diff line Loading @@ -64,4 +64,17 @@ public final class SingleAccountHelper { public static void reauthenticateCurrentAccount(Activity activity) throws NoCurrentAccountSelectedException, NextcloudFilesAppAccountNotFoundException, NextcloudFilesAppNotSupportedException, NextcloudFilesAppAccountPermissionNotGrantedException { AccountImporter.authenticateSingleSignAccount(activity, getCurrentSingleSignOnAccount(activity)); } public static void registerSharedPreferenceChangeListener(Context context, SharedPreferences.OnSharedPreferenceChangeListener listener) { AccountImporter.getSharedPreferences(context) .registerOnSharedPreferenceChangeListener(listener); } public static void unregisterSharedPreferenceChangeListener(Context context, SharedPreferences.OnSharedPreferenceChangeListener listener) { AccountImporter.getSharedPreferences(context) .unregisterOnSharedPreferenceChangeListener(listener); } }