feat:屏蔽社区
This commit is contained in:
@@ -139,7 +139,6 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
implements MainTabLayout.OnTabClickListener, IMainView, View.OnClickListener {
|
implements MainTabLayout.OnTabClickListener, IMainView, View.OnClickListener {
|
||||||
|
|
||||||
public static final String MSG_TAB = "msgTab";
|
public static final String MSG_TAB = "msgTab";
|
||||||
public static final String GAME_TAB = "gameTab";
|
|
||||||
private static final String TAG = "MainActivity";
|
private static final String TAG = "MainActivity";
|
||||||
private static final String EXTRA_APP_QUIT = "APP_QUIT";
|
private static final String EXTRA_APP_QUIT = "APP_QUIT";
|
||||||
private final SparseArray<Fragment> fragmentArray = new SparseArray<>();
|
private final SparseArray<Fragment> fragmentArray = new SparseArray<>();
|
||||||
@@ -168,7 +167,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
|
|
||||||
{
|
{
|
||||||
fragmentArray.put(MainTabType.TAB_TYPE_HOME, new HomeFragment());
|
fragmentArray.put(MainTabType.TAB_TYPE_HOME, new HomeFragment());
|
||||||
fragmentArray.put(MainTabType.TAB_TYPE_SQUARE, new SquareFragment());
|
// fragmentArray.put(MainTabType.TAB_TYPE_SQUARE, new SquareFragment());
|
||||||
fragmentArray.put(MainTabType.TAB_TYPE_MSG, new ContactsListFragment());
|
fragmentArray.put(MainTabType.TAB_TYPE_MSG, new ContactsListFragment());
|
||||||
fragmentArray.put(MainTabType.TAB_TYPE_ME, new MeFragment());
|
fragmentArray.put(MainTabType.TAB_TYPE_ME, new MeFragment());
|
||||||
}
|
}
|
||||||
@@ -340,22 +339,22 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkShowAnchorCardView() {
|
// private void checkShowAnchorCardView() {
|
||||||
if (touchRunnable != null || !mResumed || AvRoomDataManager.get().mCurrentRoomInfo != null)
|
// if (touchRunnable != null || !mResumed || AvRoomDataManager.get().mCurrentRoomInfo != null)
|
||||||
return;
|
// return;
|
||||||
int anchorCardViewType = DemoCache.readAnchorCardView();
|
// int anchorCardViewType = DemoCache.readAnchorCardView();
|
||||||
if (anchorCardViewType == 2) {
|
// if (anchorCardViewType == 2) {
|
||||||
if (CurrentTimeUtils.getCurrentTime() - DemoCache.readAnchorCardViewTime() > 15 * 60 * 1000) {
|
// if (CurrentTimeUtils.getCurrentTime() - DemoCache.readAnchorCardViewTime() > 15 * 60 * 1000) {
|
||||||
touchRunnable = () -> {
|
// touchRunnable = () -> {
|
||||||
touchRunnable = null;
|
// touchRunnable = null;
|
||||||
homeViewModel.requestAnchorInfo();
|
// homeViewModel.requestAnchorInfo();
|
||||||
};
|
// };
|
||||||
mMainTabLayout.postDelayed(touchRunnable, 5000);
|
// mMainTabLayout.postDelayed(touchRunnable, 5000);
|
||||||
}
|
// }
|
||||||
} else if (anchorCardViewType == 1 || DemoCache.readLaunchCount() == 1) {
|
// } else if (anchorCardViewType == 1 || DemoCache.readLaunchCount() == 1) {
|
||||||
homeViewModel.requestAnchorInfo();
|
// homeViewModel.requestAnchorInfo();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
|
android:visibility="gone"
|
||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<com.chwl.app.ui.widget.MainRedPointTab
|
<com.chwl.app.ui.widget.MainRedPointTab
|
||||||
|
Reference in New Issue
Block a user