Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
Fixed #7
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-Apps committed Jul 31, 2016
1 parent 5832a00 commit 7b33a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file modified .vs/Pokemon Go Universal/v14/.suo
Binary file not shown.
5 changes: 2 additions & 3 deletions PokemonGo-UWP/ViewModels/GameManagerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,8 @@ private async void UpdateMapData(bool updateOnlyPokemonData = true)
// Replace data with the new ones
var catchableTmp = new List<MapPokemon>(mapObjects.MapCells.SelectMany(i => i.CatchablePokemons));
Logger.Write($"Found {catchableTmp.Count} catchable pokemons");
if (CanVibrate && catchableTmp.Count != CatchablePokemons.Count)
if(this._vibrationDevice != null)
_vibrationDevice.Vibrate(TimeSpan.FromMilliseconds(500));
if (_vibrationDevice != null && CanVibrate && catchableTmp.Count != CatchablePokemons.Count)
_vibrationDevice.Vibrate(TimeSpan.FromMilliseconds(500));
await Dispatcher.DispatchAsync(() =>
{
CatchablePokemons.Clear();
Expand Down

0 comments on commit 7b33a85

Please sign in to comment.