[android] - add paused state to map renderer, don't render snapshot when paused (#11358)
This commit is contained in:
@@ -37,11 +37,11 @@ public abstract class MapRenderer implements MapRendererScheduler {
|
||||
}
|
||||
|
||||
public void onPause() {
|
||||
// Implement if needed
|
||||
nativeOnPause();
|
||||
}
|
||||
|
||||
public void onResume() {
|
||||
// Implement if needed
|
||||
nativeOnResume();
|
||||
}
|
||||
|
||||
public void onStop() {
|
||||
@@ -124,6 +124,10 @@ public abstract class MapRenderer implements MapRendererScheduler {
|
||||
|
||||
private native void nativeRender();
|
||||
|
||||
private native void nativeOnResume();
|
||||
|
||||
private native void nativeOnPause();
|
||||
|
||||
private long frames;
|
||||
private long timeElapsed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user