From: Damyan Ivanov Date: Sun, 17 Feb 2019 20:13:07 +0000 (+0200) Subject: whitespace X-Git-Tag: v0.7~68 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=889caa76c8e742031ad6cf7b8757fedfc06b52fe;p=mobile-ledger.git whitespace --- 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);