зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1377022 - rename track() to event(). r=maliu
MozReview-Commit-ID: 4z8pWnZ1ss0 --HG-- extra : rebase_source : a6f2b31e03e77c1c1b66ffe53acea94f38099e80
This commit is contained in:
Родитель
14c20d7c8e
Коммит
53f8320ad2
|
@ -64,7 +64,7 @@ public class MmaDelegate {
|
|||
if (value) {
|
||||
mmaHelper.init(activity);
|
||||
if (!isDefaultBrowser(activity)) {
|
||||
mmaHelper.track(MmaDelegate.LAUNCH_BUT_NOT_DEFAULT_BROWSER);
|
||||
mmaHelper.event(MmaDelegate.LAUNCH_BUT_NOT_DEFAULT_BROWSER);
|
||||
}
|
||||
isGeckoPrefOn = true;
|
||||
} else {
|
||||
|
@ -79,13 +79,13 @@ public class MmaDelegate {
|
|||
|
||||
public static void track(String event) {
|
||||
if (isMmaEnabled()) {
|
||||
mmaHelper.track(event);
|
||||
mmaHelper.event(event);
|
||||
}
|
||||
}
|
||||
|
||||
public static void track(String event, long value) {
|
||||
if (isMmaEnabled()) {
|
||||
mmaHelper.track(event, value);
|
||||
mmaHelper.event(event, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
package org.mozilla.gecko.mma;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
||||
|
||||
|
@ -16,9 +15,9 @@ public interface MmaInterface {
|
|||
|
||||
void start(Context context);
|
||||
|
||||
void track(String mmaEvent);
|
||||
void event(String mmaEvent);
|
||||
|
||||
void track(String mmaEvent, double value);
|
||||
void event(String mmaEvent, double value);
|
||||
|
||||
void stop();
|
||||
}
|
||||
|
|
|
@ -82,13 +82,13 @@ public class MmaLeanplumImp implements MmaInterface {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void track(String leanplumEvent) {
|
||||
public void event(String leanplumEvent) {
|
||||
Leanplum.track(leanplumEvent);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void track(String leanplumEvent, double value) {
|
||||
public void event(String leanplumEvent, double value) {
|
||||
Leanplum.track(leanplumEvent, value);
|
||||
|
||||
}
|
||||
|
|
|
@ -23,12 +23,12 @@ public class MmaStubImp implements MmaInterface {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void track(String leanplumEvent) {
|
||||
public void event(String leanplumEvent) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void track(String leanplumEvent, double value) {
|
||||
public void event(String leanplumEvent, double value) {
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче