From 9651eba02c61d12eeee3e02c551e2c20e7176be2 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sat, 9 Jul 2016 18:35:06 +0300 Subject: [PATCH] Fixed Personal title when coming back to the fragment --- .../matan/ara/sagi/thesocialnotework/MainActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/MainActivity.java b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/MainActivity.java index 449c4c0..6b0988f 100644 --- a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/MainActivity.java +++ b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/MainActivity.java @@ -161,7 +161,8 @@ public class MainActivity extends AppCompatActivity ft.replace(R.id.fragment_container, gmapFragment); ft.commit(); } else if (id == R.id.nav_personal) { - + toolbar.setTitle("Personal Notes"); + setSupportActionBar(toolbar); Log.d(TAG, "Before going to personal"); ft.replace(R.id.fragment_container, personalFragment); ft.commit();