fix crash in MainActivity when clicking notification

This commit is contained in:
Konrad Pozniak 2018-04-22 20:40:52 +02:00
parent b4ba457d89
commit d9e29e2cb6

View File

@ -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);