aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui/LoggingUI.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
commit65eb16770153f1751c353713b7b4a355470954ad (patch)
tree52fdfcbe990f1106b61cba40bc4dc67840cdfe44 /main/src/cgeo/geocaching/ui/LoggingUI.java
parentdf8983c679179c1713ee711d7afed484d617e36c (diff)
downloadcgeo-65eb16770153f1751c353713b7b4a355470954ad.zip
cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.gz
cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.bz2
switch to Java 1.7
At least since march both ADT and Android Studio support Java 7 features in Android development. Let's use them.
Diffstat (limited to 'main/src/cgeo/geocaching/ui/LoggingUI.java')
-rw-r--r--main/src/cgeo/geocaching/ui/LoggingUI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/ui/LoggingUI.java b/main/src/cgeo/geocaching/ui/LoggingUI.java
index d5c5fae..8454474 100644
--- a/main/src/cgeo/geocaching/ui/LoggingUI.java
+++ b/main/src/cgeo/geocaching/ui/LoggingUI.java
@@ -78,7 +78,7 @@ public class LoggingUI extends AbstractUIFactory {
final LogType currentLogType = currentLog == null ? null : currentLog.type;
final List<LogType> logTypes = cache.getPossibleLogTypes();
- final ArrayList<LogTypeEntry> list = new ArrayList<LogTypeEntry>();
+ final ArrayList<LogTypeEntry> list = new ArrayList<>();
for (LogType logType : logTypes) {
list.add(new LogTypeEntry(logType, null, logType == currentLogType));
}
@@ -90,7 +90,7 @@ public class LoggingUI extends AbstractUIFactory {
final AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setTitle(R.string.cache_menu_visit_offline);
- final ArrayAdapter<LogTypeEntry> adapter = new ArrayAdapter<LogTypeEntry>(activity, android.R.layout.select_dialog_item, list);
+ final ArrayAdapter<LogTypeEntry> adapter = new ArrayAdapter<>(activity, android.R.layout.select_dialog_item, list);
builder.setAdapter(adapter, new DialogInterface.OnClickListener() {
@Override