fix crash in MainActivity when clicking notification

main
Konrad Pozniak 7 years ago
parent 3a873df06f
commit 5a2b1c8a97
  1. 3
      app/src/main/java/com/keylesspalace/tusky/MainActivity.java

@ -104,6 +104,8 @@ public class MainActivity extends BaseActivity implements ActionButtonActivity,
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent(); Intent intent = getIntent();
int tabPosition = 0; int tabPosition = 0;
@ -121,7 +123,6 @@ public class MainActivity extends BaseActivity implements ActionButtonActivity,
} }
} }
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
FloatingActionButton floatingBtn = findViewById(R.id.floating_btn); FloatingActionButton floatingBtn = findViewById(R.id.floating_btn);

Loading…
Cancel
Save