Esempio n. 1
0
  @Override
  public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    supportRequestWindowFeature(Window.FEATURE_NO_TITLE);

    this.setTheme(ActivityMixin.getDialogTheme());

    final Bundle extras = getIntent().getExtras();
    if (extras != null) {
      waypointId = extras.getInt(Intents.EXTRA_WAYPOINT_ID);
      geocode = extras.getString(Intents.EXTRA_GEOCODE);
    }
    showDialog();
  }
Esempio n. 2
0
  public CoordinatesInputDialog(
      final AbstractActivity context, final Geocache cache, final Geopoint gp, final IGeoData geo) {
    super(context, ActivityMixin.getDialogTheme());
    this.context = context;
    this.geo = geo;
    this.cache = cache;

    if (gp != null) {
      this.gp = gp;
    } else if (geo != null && geo.getCoords() != null) {
      this.gp = geo.getCoords();
    } else {
      this.gp = new Geopoint(0.0, 0.0);
    }
  }