Two-tabs layout: non-cache and cache modules

This commit is contained in:
dvdandroid
2016-08-23 05:42:45 +08:00
committed by topjohnwu
parent 31b552ab51
commit 5279226f36
6 changed files with 194 additions and 73 deletions
@@ -113,6 +113,8 @@ public class WelcomeActivity extends AppCompatActivity implements NavigationView
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
transaction.setCustomAnimations(R.anim.fade_in, R.anim.fade_out);
try {
toolbar.setElevation(navFragment instanceof ModulesFragment ? 0 : 10);
transaction.replace(R.id.content_frame, navFragment).commit();
} catch (IllegalStateException ignored) {
}