Fixes the latest fix
This commit is contained in:
parent
ba799dac26
commit
1093167f42
1 changed files with 4 additions and 4 deletions
|
|
@ -104,7 +104,7 @@ namespace BookAStar
|
||||||
// Inform the server of it.
|
// Inform the server of it.
|
||||||
if (oldregid != value)
|
if (oldregid != value)
|
||||||
{
|
{
|
||||||
App.CurrentApp.PostDeviceInfo();
|
App.PostDeviceInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get { return AppSettings.GetValueOrDefault<string>(GoogleRegIdKey); }
|
get { return AppSettings.GetValueOrDefault<string>(GoogleRegIdKey); }
|
||||||
|
|
@ -155,15 +155,15 @@ namespace BookAStar
|
||||||
{
|
{
|
||||||
if (olduserid != value.Id)
|
if (olduserid != value.Id)
|
||||||
{
|
{
|
||||||
App.CurrentApp.PostDeviceInfo();
|
App.PostDeviceInfo();
|
||||||
if (UserChanged!=null)
|
if (UserChanged!=null)
|
||||||
UserChanged.Invoke(App.CurrentApp, new EventArgs());
|
UserChanged.Invoke(App.Current, new EventArgs());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (olduserid != null)
|
else if (olduserid != null)
|
||||||
{
|
{
|
||||||
if (UserChanged != null)
|
if (UserChanged != null)
|
||||||
UserChanged.Invoke(App.CurrentApp, new EventArgs());
|
UserChanged.Invoke(App.Current, new EventArgs());
|
||||||
// TODO else Unregister this device
|
// TODO else Unregister this device
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue