merge
This commit is contained in:
@@ -9,7 +9,6 @@ import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger;
|
||||
import com.mogo.service.IMogoServiceApis;
|
||||
import com.mogo.service.analytics.IMogoAnalytics;
|
||||
import com.mogo.service.datamanager.IMogoDataManager;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.impl.analytics.impl.MogoAnalyticsImpl;
|
||||
@@ -67,11 +66,6 @@ public class MogoServiceApis implements IMogoServiceApis {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMogoDataManager getDataManagerApi() {
|
||||
return getApiInstance(IMogoDataManager.class, MogoServicePaths.PATH_DATA_MANAGER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMogoRegisterCenter getRegisterCenterApi() {
|
||||
return getApiInstance(IMogoRegisterCenter.class, MogoServicePaths.PATH_REGISTER_CENTER);
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.mogo.service.impl.singleton;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.alibaba.android.arouter.launcher.ARouter;
|
||||
import com.mogo.service.datamanager.IMogoDataManager;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.impl.fragmentmanager.MogoFragmentManager;
|
||||
import com.mogo.service.impl.statusmanager.MogoStatusManager;
|
||||
@@ -24,7 +23,6 @@ public class SingletonsHolder {
|
||||
static {
|
||||
sSingletons.put(IMogoFragmentManager.class, new MogoFragmentManager());
|
||||
sSingletons.put(IMogoStatusManager.class, new MogoStatusManager());
|
||||
sSingletons.put(IMogoDataManager.class, ARouter.getInstance().navigation(IMogoDataManager.class));
|
||||
}
|
||||
|
||||
public static <T> T get(Class<T> clazz) {
|
||||
|
||||
@@ -61,18 +61,6 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return get_bool_val( StatusDescriptor.ACC_STATUS );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUserInteracted() {
|
||||
try {
|
||||
return get_bool_val( StatusDescriptor.USER_INTERACTED );
|
||||
} catch ( Exception e ) {
|
||||
return false;
|
||||
} finally {
|
||||
// 恢复消费过的状态
|
||||
mStatus.put( StatusDescriptor.USER_INTERACTED, false );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMainPageOnResume() {
|
||||
return get_bool_val( StatusDescriptor.MAIN_PAGE_RESUME );
|
||||
@@ -93,11 +81,6 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return val != null && val;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTopViewShow(String tag, boolean show) {
|
||||
doSetStatus(tag, StatusDescriptor.TOP_VIEW, show);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVrMode(String tag, boolean vrMode) {
|
||||
doSetStatus(tag, StatusDescriptor.VR_MODE, vrMode);
|
||||
@@ -118,15 +101,6 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
doSetStatus( tag, StatusDescriptor.ACC_STATUS, isOn );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUserInteractionStatus( String tag, boolean interrupt, boolean callback ) {
|
||||
mStatus.put( StatusDescriptor.USER_INTERACTED, interrupt );
|
||||
if ( callback ) {
|
||||
invokeStatusChangedListener( StatusDescriptor.USER_INTERACTED, interrupt );
|
||||
}
|
||||
recordStatusModifier( tag, StatusDescriptor.USER_INTERACTED );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setMainPageResumeStatus( String tag, boolean resume ) {
|
||||
doSetStatus( tag, StatusDescriptor.MAIN_PAGE_RESUME, resume );
|
||||
@@ -152,16 +126,6 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
doSetStatus( tag, StatusDescriptor.MAIN_PAGE_CREATED, launched );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTopContainerReady( String tag, boolean isReady ) {
|
||||
doSetStatus( tag, StatusDescriptor.TOP_CONTAINER_READY, isReady );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTopContainerReady() {
|
||||
return get_bool_val( StatusDescriptor.TOP_CONTAINER_READY );
|
||||
}
|
||||
|
||||
private void doSetStatus( String tag, StatusDescriptor target, boolean value ) {
|
||||
mStatus.put( target, value );
|
||||
invokeStatusChangedListener( target, value );
|
||||
|
||||
Reference in New Issue
Block a user