From: Damyan Ivanov Date: Tue, 12 Mar 2019 20:08:14 +0000 (+0200) Subject: move setupProfile from onCreate to onStart X-Git-Tag: v0.8~19 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=6674583a28d87545a041f087673177ee7be8ef93;p=mobile-ledger.git move setupProfile from onCreate to onStart it needs toe activity to be filly up --- 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);