diff options
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java index 760d992..b2c6625 100644 --- a/main/src/cgeo/geocaching/VisitCacheActivity.java +++ b/main/src/cgeo/geocaching/VisitCacheActivity.java @@ -10,8 +10,8 @@ import cgeo.geocaching.gcvote.GCVote; import cgeo.geocaching.loaders.UrlLoader; import cgeo.geocaching.network.Parameters; import cgeo.geocaching.twitter.Twitter; -import cgeo.geocaching.ui.DateDialog; import cgeo.geocaching.ui.Formatter; +import cgeo.geocaching.ui.dialog.DateDialog; import cgeo.geocaching.utils.Log; import cgeo.geocaching.utils.LogTemplateProvider; import cgeo.geocaching.utils.LogTemplateProvider.LogContext; @@ -66,7 +66,7 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD private static final int SELECT_IMAGE = 101; private LayoutInflater inflater = null; - private cgCache cache = null; + private Geocache cache = null; private ProgressDialog waitDialog = null; private String cacheid = null; private String geocode = null; @@ -568,7 +568,7 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD if (logResult.left == StatusCode.NO_ERROR) { final LogEntry logNow = new LogEntry(date, typeSelected, log); - cache.getLogs().prepend(logNow); + cache.getLogs().add(0, logNow); if (typeSelected == LogType.FOUND_IT) { cache.setFound(true); @@ -625,7 +625,7 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD } private void selectAllTrackablesAction() { - Builder alert = new AlertDialog.Builder(VisitCacheActivity.this); + Builder alert = new AlertDialog.Builder(this); alert.setTitle(res.getString(R.string.log_tb_changeall)); String[] tbLogTypes = getTBLogTypes(); alert.setItems(tbLogTypes, new OnClickListener() { @@ -654,7 +654,7 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD } private void selectLogType() { - Builder alert = new AlertDialog.Builder(VisitCacheActivity.this); + Builder alert = new AlertDialog.Builder(this); String[] choices = new String[possibleLogTypes.size()]; for (int i = 0; i < choices.length; i++) { choices[i] = possibleLogTypes.get(i).getL10n(); @@ -672,7 +672,7 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD private void selectTrackableAction(View view) { final int realViewId = view.getId(); - Builder alert = new AlertDialog.Builder(VisitCacheActivity.this); + Builder alert = new AlertDialog.Builder(this); final TrackableLog trackableLog = actionButtons.get(realViewId); alert.setTitle(trackableLog.name); String[] tbLogTypes = getTBLogTypes(); |
