Skip to content

Commit

Permalink
Fix for cycling device IDs on each start for device package users.
Browse files Browse the repository at this point in the history
  • Loading branch information
jurannus committed Aug 8, 2016
1 parent 06a8abb commit d6b6c7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PoGo.NecroBot.Logic/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ public void Load(string path)
if (!this.DevicePackageName.Equals("random", StringComparison.InvariantCultureIgnoreCase) && !this.DevicePackageName.Equals("custom", StringComparison.InvariantCultureIgnoreCase))
{
// User requested a specific device package, check to see if it exists and if so, set it up - otherwise fall-back to random package
string keepDevId = this.DeviceId;
SetDevInfoByKey(this.DevicePackageName);
// if (DeviceInfoHelper.DeviceInfoSets.ContainsKey()) - Show error now instead of checking and falling back to random
this.DeviceId = keepDevId;
}
if (this.DevicePackageName.Equals("random", StringComparison.InvariantCultureIgnoreCase))
{
Expand Down

0 comments on commit d6b6c7b

Please sign in to comment.