From d9e29e2cb6d75cc92d2f647bad61994841eeb982 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 22 Apr 2018 20:40:52 +0200 Subject: [PATCH] fix crash in MainActivity when clicking notification --- app/src/main/java/com/keylesspalace/tusky/MainActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java index 06b97772f..eee24f2d9 100644 --- a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java @@ -104,6 +104,8 @@ public class MainActivity extends BaseActivity implements ActionButtonActivity, @Override protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + Intent intent = getIntent(); int tabPosition = 0; @@ -121,7 +123,6 @@ public class MainActivity extends BaseActivity implements ActionButtonActivity, } } - super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); FloatingActionButton floatingBtn = findViewById(R.id.floating_btn);