@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+
setContentView(R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
Intent intent = new Intent(this, ProfileListActivity.class);
startActivity(intent);
}
+ public void fabShouldShow() {
+ MobileLedgerProfile profile = Data.profile.get();
+ if ((profile != null) && profile.isPostingPermitted()) fab.show();
+ }
+
public class SectionsPagerAdapter extends FragmentPagerAdapter {
public SectionsPagerAdapter(FragmentManager fm) {
return 2;
}
}
- public void fabShouldShow() {
- MobileLedgerProfile profile = Data.profile.get();
- if ((profile != null) && profile.isPostingPermitted()) fab.show();
- }
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+
setContentView(R.layout.activity_new_transaction);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);