From 1d5ca3b9374029223c2bd2813d3ab6ec00c81de0 Mon Sep 17 00:00:00 2001 From: ExMix Date: Thu, 12 Mar 2015 17:53:11 +0300 Subject: [PATCH] review fixes --- android/src/com/mapswithme/maps/RenderActivity.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/RenderActivity.java b/android/src/com/mapswithme/maps/RenderActivity.java index f68695b27c..eb266e4e7a 100644 --- a/android/src/com/mapswithme/maps/RenderActivity.java +++ b/android/src/com/mapswithme/maps/RenderActivity.java @@ -44,7 +44,15 @@ public abstract class RenderActivity extends MWMFragmentActivity } @Override - protected void onCreate(Bundle b) + public void onViewCreated(View view, @Nullable Bundle savedInstanceState) + { + super.onViewCreated(view, savedInstanceState); + final SurfaceView surfaceView = (SurfaceView) view.findViewById(R.id.map_surfaceview); + surfaceView.getHolder().addCallback(this); + } + + @Override + public void onCreate(Bundle b) { super.onCreate(b); final DisplayMetrics metrics = new DisplayMetrics();