Fix #10216
This commit is contained in:
parent
4b99c282dd
commit
e1ef1b096c
1 changed files with 12 additions and 2 deletions
|
@ -930,11 +930,21 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
|||
stopRecording(activity, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mapActivityResume(MapActivity activity) {
|
||||
this.mapActivity = activity;
|
||||
if (Build.VERSION.SDK_INT < 29) {
|
||||
runAction(activity);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mapActivityResumeOnTop(MapActivity activity) {
|
||||
this.mapActivity = activity;
|
||||
// ((AudioManager) activity.getSystemService(Context.AUDIO_SERVICE)).registerMediaButtonEventReceiver(
|
||||
// new ComponentName(activity, MediaRemoteControlReceiver.class));
|
||||
runAction(activity);
|
||||
}
|
||||
|
||||
private void runAction(MapActivity activity) {
|
||||
if (runAction != -1) {
|
||||
takeAction(activity, actionLon, actionLat, runAction);
|
||||
runAction = -1;
|
||||
|
|
Loading…
Reference in a new issue