title: Locationsensor does not turn off
body: <p>I'm using a locationsensor that is active on formcreate and a Mapview with Compass and MyLocation ControlOptions turned on on design time. I want to turn the location off when the app goes to background. I use this code:</p>
  
  <pre><code>function Frm.OnApplicationEvent(AAppEvent:TApplicationEvent;AContext:TObject):Boolean;
  var
  StartupIntent: JIntent;
    begin    
      case AAppEvent of
        TApplicationEvent.EnteredBackground:
        //TApplicationEvent.willbecomeinactive:
         begin
          MapView1.ControlOptions := MapView1.ControlOptions - [TMapControlOption.MyLocation];
          MapView1.ControlOptions := MapView1.ControlOptions - [TMapControlOption.Compass];
          locationsensor1.Active:=false;
          mapview1.Enabled:=false;
         end;
        TApplicationEvent.WillBecomeForeground:
         begin
          mapview1.Enabled:=true;
          MapView1.ControlOptions := MapView1.ControlOptions + [TMapControlOption.MyLocation];
          MapView1.ControlOptions := MapView1.ControlOptions + [TMapControlOption.Compass];
          locationsensor1.Active:=true;
         end;
      end;
      Result := False;
    end;
  </code></pre>
  
  <p>but the location icon on android does not disappear. It only disappear if I kill the app.</p>
  
  <p>Any idea of the problem?</p>
  
  <p>Thanks a lot</p>