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.Color;
|
||||||
import android.graphics.Point;
|
import android.graphics.Point;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Display;
|
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -128,7 +127,8 @@ public class TourGuide {
|
|||||||
* Clean up the tutorial that is added to the activity
|
* Clean up the tutorial that is added to the activity
|
||||||
*/
|
*/
|
||||||
public void cleanUp(){
|
public void cleanUp(){
|
||||||
mFrameLayout.cleanUp();
|
if (mFrameLayout != null)
|
||||||
|
mFrameLayout.cleanUp();
|
||||||
if (mToolTipViewGroup!=null) {
|
if (mToolTipViewGroup!=null) {
|
||||||
((ViewGroup) mActivity.getWindow().getDecorView()).removeView(mToolTipViewGroup);
|
((ViewGroup) mActivity.getWindow().getDecorView()).removeView(mToolTipViewGroup);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user