(chore) improvements

Signed-off-by: androidacy-user <opensource@androidacy.com>
master
androidacy-user 1 year ago
parent 231cc99cb6
commit 6e95acbba4

@ -591,7 +591,7 @@ public class MainActivity extends FoxActivity implements SwipeRefreshLayout.OnRe
public boolean onQueryTextSubmit(final String query) {
this.searchView.clearFocus();
if (this.initMode) return false;
TrackHelper.track().event("search", query).with(MainApplication.getINSTANCE().getTracker());
TrackHelper.track().search(query).with(MainApplication.getINSTANCE().getTracker());
if (this.moduleViewListBuilder.setQueryChange(query)) {
Timber.i("Query submit: %s on offline list", query);
new Thread(() -> this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter), "Query update thread").start();
@ -607,7 +607,7 @@ public class MainActivity extends FoxActivity implements SwipeRefreshLayout.OnRe
@Override
public boolean onQueryTextChange(String query) {
if (this.initMode) return false;
TrackHelper.track().event("search_type", query).with(MainApplication.getINSTANCE().getTracker());
TrackHelper.track().search(query).with(MainApplication.getINSTANCE().getTracker());
if (this.moduleViewListBuilder.setQueryChange(query)) {
Timber.i("Query submit: %s on offline list", query);
new Thread(() -> this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter), "Query update thread").start();

@ -372,7 +372,7 @@ public class MainApplication extends FoxApplication implements androidx.work.Con
public synchronized Tracker getTracker() {
if (tracker == null) {
tracker = TrackerBuilder.createDefault(BuildConfig.ANALYTICS_ENDPOINT, 1).build(Matomo.getInstance(this));
tracker.setDispatchTimeout(10);
tracker.startNewSession();
tracker.setDispatchInterval(1000);
}
return tracker;

@ -166,6 +166,7 @@ public class InstallerActivity extends FoxActivity {
wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Fox:Installer");
this.progressIndicator.setVisibility(View.VISIBLE);
if (urlMode) this.installerTerminal.addLine("- Downloading " + name);
TrackHelper.track().event("installer_start", name).with(MainApplication.getINSTANCE().getTracker());
String finalTarget = target;
new Thread(() -> {
// ensure module cache is is in our cache dir

Loading…
Cancel
Save