diff --git a/build.gradle b/build.gradle
index b202f2756..2031ca38c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
- classpath 'com.android.tools.build:gradle:8.2.2'
+ classpath 'com.android.tools.build:gradle:8.3.1'
}
}
diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
index b4361b738..e23d5beb6 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -75,6 +75,9 @@
android:exported="false"
android:label="@string/title_activity_leaderboard"
android:theme="@style/OpenTracksTheme.NoActionBar" />
+
@@ -369,7 +372,8 @@
android:launchMode="singleInstance"
android:process=":crash" />
+ android:exported="true"
+ tools:ignore="DuplicateActivity">
diff --git a/src/main/java/de/dennisguse/opentracks/TrackRecordedActivity.java b/src/main/java/de/dennisguse/opentracks/TrackRecordedActivity.java
index 499e8661f..5d3eb4a74 100644
--- a/src/main/java/de/dennisguse/opentracks/TrackRecordedActivity.java
+++ b/src/main/java/de/dennisguse/opentracks/TrackRecordedActivity.java
@@ -49,8 +49,10 @@
import de.dennisguse.opentracks.settings.SettingsActivity;
import de.dennisguse.opentracks.share.ShareUtils;
import de.dennisguse.opentracks.ui.aggregatedStatistics.ConfirmDeleteDialogFragment;
+import de.dennisguse.opentracks.ui.aggregatedStatistics.dailyStats.DailyStatsActivity;
import de.dennisguse.opentracks.ui.intervals.IntervalsFragment;
import de.dennisguse.opentracks.ui.markers.MarkerListActivity;
+import de.dennisguse.opentracks.ui.menuStatistics.MenuStatisticsActivity;
import de.dennisguse.opentracks.util.IntentDashboardUtils;
import de.dennisguse.opentracks.util.IntentUtils;
@@ -212,6 +214,11 @@ public boolean onOptionsItemSelected(MenuItem item) {
return true;
}
+ if (item.getItemId() == R.id.filter) {
+ startActivity(IntentUtils.newIntent(this, MenuStatisticsActivity.class));
+ return true;
+ }
+
if (item.getItemId() == R.id.track_detail_menu_show_on_map) {
IntentDashboardUtils.showTrackOnMap(this, false, trackId);
return true;
diff --git a/src/main/java/de/dennisguse/opentracks/TrackRecordingActivity.java b/src/main/java/de/dennisguse/opentracks/TrackRecordingActivity.java
index 3390484d1..1784a3643 100644
--- a/src/main/java/de/dennisguse/opentracks/TrackRecordingActivity.java
+++ b/src/main/java/de/dennisguse/opentracks/TrackRecordingActivity.java
@@ -41,6 +41,7 @@
import de.dennisguse.opentracks.services.handlers.GpsStatusValue;
import de.dennisguse.opentracks.settings.PreferencesUtils;
import de.dennisguse.opentracks.settings.SettingsActivity;
+import de.dennisguse.opentracks.ui.menuStatistics.MenuStatisticsActivity;
import de.dennisguse.opentracks.ui.intervals.IntervalsFragment;
import de.dennisguse.opentracks.ui.markers.MarkerEditActivity;
import de.dennisguse.opentracks.ui.markers.MarkerListActivity;
@@ -267,6 +268,11 @@ public boolean onOptionsItemSelected(MenuItem item) {
return true;
}
+ if (item.getItemId() == R.id.filter) {
+ startActivity(IntentUtils.newIntent(this, MenuStatisticsActivity.class));
+ return true;
+ }
+
if (item.getItemId() == R.id.track_detail_insert_marker) {
Intent intent = IntentUtils
.newIntent(this, MarkerEditActivity.class)
diff --git a/src/main/java/de/dennisguse/opentracks/data/ContentProviderUtils.java b/src/main/java/de/dennisguse/opentracks/data/ContentProviderUtils.java
index bc6875850..f91fcae88 100644
--- a/src/main/java/de/dennisguse/opentracks/data/ContentProviderUtils.java
+++ b/src/main/java/de/dennisguse/opentracks/data/ContentProviderUtils.java
@@ -214,6 +214,34 @@ public List