]> git.ktnx.net Git - mobile-ledger.git/commitdiff
nullability annotations
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Apr 2019 18:13:31 +0000 (21:13 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Apr 2019 18:13:31 +0000 (21:13 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java

index 19048c91b8d895fe3444d114f617b3d93d4c511c..ff4b20f48c9ff3d7b464bae3af532df70140ee92 100644 (file)
@@ -37,6 +37,7 @@ import net.ktnx.mobileledger.ui.MobileLedgerListFragment;
 import net.ktnx.mobileledger.ui.activity.MainActivity;
 import net.ktnx.mobileledger.utils.Colors;
 
+import org.jetbrains.annotations.NotNull;
 
 import androidx.annotation.NonNull;
 import androidx.annotation.Nullable;
@@ -60,7 +61,7 @@ public class AccountSummaryFragment extends MobileLedgerListFragment {
 
         Data.backgroundTasksRunning.observe(this, this::onBackgroundTaskRunningChanged);
     }
-    public void onAttach(Context context) {
+    public void onAttach(@NotNull Context context) {
         super.onAttach(context);
         Log.d("flow", "AccountSummaryFragment.onAttach()");
         mActivity = (MainActivity) context;
@@ -170,7 +171,7 @@ public class AccountSummaryFragment extends MobileLedgerListFragment {
         stopSelection();
     }
     @Override
-    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
+    public void onCreateOptionsMenu(@NotNull Menu menu, @NotNull MenuInflater inflater) {
         // Inflate the menu; this adds items to the action bar if it is present.
         inflater.inflate(R.menu.account_summary, menu);
         optMenu = menu;