Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Fix android app widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Mar 1, 2021
1 parent a644eab commit 8c5f2c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TsinghuaNet.XF/TsinghuaNet.XF.Android/Background/AppWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public override async void OnUpdate(Context context, AppWidgetManager appWidgetM
NetCredential credential = new NetCredential();
(credential.Username, credential.Password) = await CredentialStore.LoadCredentialAsync();
credential.State = await status.SuggestAsync();
var helper = credential.GetHelper();
NetXFSettings settings = new NetXFSettings();
settings.LoadSettings();
var helper = credential.GetHelper(settings);
if (helper != null)
{
NetXFSettings settings = new NetXFSettings();
settings.LoadSettings();
if (settings.BackgroundAutoLogin && !string.IsNullOrEmpty(credential.Username))
{
if (settings.EnableRelogin) await helper.LogoutAsync();
Expand Down

0 comments on commit 8c5f2c9

Please sign in to comment.