From 6674583a28d87545a041f087673177ee7be8ef93 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 12 Mar 2019 22:08:14 +0200 Subject: [PATCH] move setupProfile from onCreate to onStart it needs toe activity to be filly up --- .../java/net/ktnx/mobileledger/ui/activity/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index 64a30812..1376e7a9 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -91,6 +91,8 @@ public class MainActivity extends ProfileThemedActivity { protected void onStart() { super.onStart(); + setupProfile(); + updateLastUpdateTextFromDB(); Date lastUpdate = Data.lastUpdateDate.get(); @@ -115,8 +117,6 @@ public class MainActivity extends ProfileThemedActivity { setContentView(R.layout.activity_main); - setupProfile(); - fab = findViewById(R.id.btn_add_transaction); profileListContainer = findViewById(R.id.nav_profile_list_container); profileListHeadArrow = findViewById(R.id.nav_profiles_arrow); -- 2.39.5