From 889caa76c8e742031ad6cf7b8757fedfc06b52fe Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 17 Feb 2019 22:13:07 +0200 Subject: [PATCH] whitespace --- .../ktnx/mobileledger/ui/activity/MainActivity.java | 10 ++++++---- .../ui/activity/NewTransactionActivity.java | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) 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 ad5da965..9cb045d7 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 @@ -87,6 +87,7 @@ public class MainActivity extends CrashReportingActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); @@ -381,6 +382,11 @@ public class MainActivity extends CrashReportingActivity { 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) { @@ -406,8 +412,4 @@ public class MainActivity extends CrashReportingActivity { return 2; } } - public void fabShouldShow() { - MobileLedgerProfile profile = Data.profile.get(); - if ((profile != null) && profile.isPostingPermitted()) fab.show(); - } } diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java index 35851770..66c66da1 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java @@ -88,6 +88,7 @@ public class NewTransactionActivity extends CrashReportingActivity @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + setContentView(R.layout.activity_new_transaction); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); -- 2.39.5