public static Activity getValidContext() { if (SideBarActivity.sInstance != null) return SideBarActivity.sInstance; else if (SignInActivity.getInstance() != null) return SignInActivity.getInstance(); else if (WallActivity.getInstance() != null) return WallActivity.getInstance(); else if (RecentActivityActivity.getInstance() != null) return RecentActivityActivity.getInstance(); else if (SplashScreenActivity.sInstance != null) return SplashScreenActivity.sInstance; else return null; }
public void openSideBar() { getActivitySummary(); mRlSideBarHolder.setVisibility(View.VISIBLE); mRlSideBarHolder.bringToFront(); mRlSideBarHolder.startAnimation(SpikaApp.getSlideInLeft()); mRlBody.startAnimation(SpikaApp.getSlideOutRight()); mSideBarOpened = true; if (!this.equals(RecentActivityActivity.getInstance()) && !this.getComponentName().toString().contains("UsersActivity") && !this.getComponentName().toString().contains("GroupsActivity")) { hideKeyboard(); } disableViews(); }