|
|
@ -47,6 +47,9 @@ public class TabsManager { |
|
|
|
@Nullable private LightningView mCurrentTab; |
|
|
|
@Nullable private LightningView mCurrentTab; |
|
|
|
@Nullable private TabNumberChangedListener mTabNumberListener; |
|
|
|
@Nullable private TabNumberChangedListener mTabNumberListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean mIsInitialized = false; |
|
|
|
|
|
|
|
private List<Runnable> mPostInitializationWorkList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
@Inject PreferenceManager mPreferenceManager; |
|
|
|
@Inject PreferenceManager mPreferenceManager; |
|
|
|
@Inject Bus mEventBus; |
|
|
|
@Inject Bus mEventBus; |
|
|
|
@Inject Application mApp; |
|
|
|
@Inject Application mApp; |
|
|
@ -64,8 +67,9 @@ public class TabsManager { |
|
|
|
mTabNumberListener = listener; |
|
|
|
mTabNumberListener = listener; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean mIsInitialized = false; |
|
|
|
public void cancelPendingWork() { |
|
|
|
private List<Runnable> mPostInitializationWorkList = new ArrayList<>(); |
|
|
|
mPostInitializationWorkList.clear(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void doAfterInitialization(@NonNull Runnable runnable) { |
|
|
|
public void doAfterInitialization(@NonNull Runnable runnable) { |
|
|
|
if (mIsInitialized) { |
|
|
|
if (mIsInitialized) { |
|
|
|