Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 6e95acb

Browse files
(chore) improvements
Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent 231cc99 commit 6e95acb

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/main/java/com/fox2code/mmm/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public void onRefresh() {
591591
public boolean onQueryTextSubmit(final String query) {
592592
this.searchView.clearFocus();
593593
if (this.initMode) return false;
594-
TrackHelper.track().event("search", query).with(MainApplication.getINSTANCE().getTracker());
594+
TrackHelper.track().search(query).with(MainApplication.getINSTANCE().getTracker());
595595
if (this.moduleViewListBuilder.setQueryChange(query)) {
596596
Timber.i("Query submit: %s on offline list", query);
597597
new Thread(() -> this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter), "Query update thread").start();
@@ -607,7 +607,7 @@ public boolean onQueryTextSubmit(final String query) {
607607
@Override
608608
public boolean onQueryTextChange(String query) {
609609
if (this.initMode) return false;
610-
TrackHelper.track().event("search_type", query).with(MainApplication.getINSTANCE().getTracker());
610+
TrackHelper.track().search(query).with(MainApplication.getINSTANCE().getTracker());
611611
if (this.moduleViewListBuilder.setQueryChange(query)) {
612612
Timber.i("Query submit: %s on offline list", query);
613613
new Thread(() -> this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter), "Query update thread").start();

app/src/main/java/com/fox2code/mmm/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public boolean isDarkTheme() {
372372
public synchronized Tracker getTracker() {
373373
if (tracker == null) {
374374
tracker = TrackerBuilder.createDefault(BuildConfig.ANALYTICS_ENDPOINT, 1).build(Matomo.getInstance(this));
375-
tracker.setDispatchTimeout(10);
375+
tracker.startNewSession();
376376
tracker.setDispatchInterval(1000);
377377
}
378378
return tracker;

app/src/main/java/com/fox2code/mmm/installer/InstallerActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ protected void onCreate(Bundle savedInstanceState) {
166166
wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Fox:Installer");
167167
this.progressIndicator.setVisibility(View.VISIBLE);
168168
if (urlMode) this.installerTerminal.addLine("- Downloading " + name);
169+
TrackHelper.track().event("installer_start", name).with(MainApplication.getINSTANCE().getTracker());
169170
String finalTarget = target;
170171
new Thread(() -> {
171172
// ensure module cache is is in our cache dir

0 commit comments

Comments
 (0)