import com.google.android.material.floatingactionbutton.FloatingActionButton;
import net.ktnx.mobileledger.R;
+import net.ktnx.mobileledger.async.DbOpQueue;
import net.ktnx.mobileledger.async.RefreshDescriptionsTask;
import net.ktnx.mobileledger.async.RetrieveTransactionsTask;
import net.ktnx.mobileledger.model.Data;
}
});
});
+ Data.profiles.addObserver((o, arg) -> {
+ findViewById(R.id.nav_profile_list).setMinimumHeight(
+ (int) (getResources().getDimension(R.dimen.thumb_row_height) *
+ Data.profiles.size()));
+ mProfileListAdapter.notifyDataSetChanged();
+ });
ActionBarDrawerToggle toggle =
new ActionBarDrawerToggle(this, drawer, toolbar, R.string.navigation_drawer_open,
ViewPropertyAnimator animator = arrow.animate();
acc.toggleExpanded();
- Data.profile.get().storeAccount(MLDB.getWritableDatabase(), acc);
+ Data.profile.get().storeAccount(MLDB.getDatabase(), acc);
if (wasExpanded) {
Log.d("accounts", String.format("Collapsing account '%s'", acc.getName()));