|
@@ -12,9 +12,11 @@ import android.app.AlertDialog;
|
|
import android.app.Fragment;
|
|
import android.app.Fragment;
|
|
import android.app.FragmentManager;
|
|
import android.app.FragmentManager;
|
|
import android.content.DialogInterface;
|
|
import android.content.DialogInterface;
|
|
|
|
+import android.content.SharedPreferences;
|
|
import android.graphics.Color;
|
|
import android.graphics.Color;
|
|
import android.location.Location;
|
|
import android.location.Location;
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
|
+import android.text.Html;
|
|
import android.view.InflateException;
|
|
import android.view.InflateException;
|
|
import android.view.LayoutInflater;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.View;
|
|
@@ -353,6 +355,17 @@ public class ThreatMapFragment extends TrackerFragment implements GoogleMap.OnIn
|
|
sMap = mapFragment.getMap();
|
|
sMap = mapFragment.getMap();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.getInstance());
|
|
|
|
+ builder.setMessage(Html.fromHtml(getString(R.string.google_play_services_unavailable)))
|
|
|
|
+ .setCancelable(false)
|
|
|
|
+ .setPositiveButton(getString(R.string.ok), new DialogInterface.OnClickListener() {
|
|
|
|
+ public void onClick(DialogInterface dialog, int id) {
|
|
|
|
+ // :D-|< :D-/< :D-\<
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ AlertDialog alert = builder.create();
|
|
|
|
+ alert.show();
|
|
}
|
|
}
|
|
} catch (InflateException e) {
|
|
} catch (InflateException e) {
|
|
// map already exists
|
|
// map already exists
|