mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-18 19:52:19 +01:00
DroidFish: Fixed possible NPE in TourGuide.cleanUp().
This commit is contained in:
@@ -10,7 +10,6 @@ import android.app.Activity;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Point;
|
||||
import android.util.Log;
|
||||
import android.view.Display;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@@ -128,6 +127,7 @@ public class TourGuide {
|
||||
* Clean up the tutorial that is added to the activity
|
||||
*/
|
||||
public void cleanUp(){
|
||||
if (mFrameLayout != null)
|
||||
mFrameLayout.cleanUp();
|
||||
if (mToolTipViewGroup!=null) {
|
||||
((ViewGroup) mActivity.getWindow().getDecorView()).removeView(mToolTipViewGroup);
|
||||
|
||||
Reference in New Issue
Block a user