Fixed Personal title when coming back to the fragment

This commit is contained in:
Sagi Dayan 2016-07-09 18:35:06 +03:00
parent 7b0856e903
commit 9651eba02c

View file

@ -161,7 +161,8 @@ public class MainActivity extends AppCompatActivity
ft.replace(R.id.fragment_container, gmapFragment); ft.replace(R.id.fragment_container, gmapFragment);
ft.commit(); ft.commit();
} else if (id == R.id.nav_personal) { } else if (id == R.id.nav_personal) {
toolbar.setTitle("Personal Notes");
setSupportActionBar(toolbar);
Log.d(TAG, "Before going to personal"); Log.d(TAG, "Before going to personal");
ft.replace(R.id.fragment_container, personalFragment); ft.replace(R.id.fragment_container, personalFragment);
ft.commit(); ft.commit();