summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
58d086f)
same is done in super.initProfile() during normal startup
the global profile setting is needed in the item holder when setting up
lookups
if (profileUUID != null) {
mProfile = Data.getProfile(profileUUID);
if (mProfile == null) finish();
if (profileUUID != null) {
mProfile = Data.getProfile(profileUUID);
if (mProfile == null) finish();
+ Data.setCurrentProfile(mProfile);
}
else super.initProfile();
}
}
else super.initProfile();
}
import net.ktnx.mobileledger.R;
import net.ktnx.mobileledger.async.DescriptionSelectedCallback;
import net.ktnx.mobileledger.R;
import net.ktnx.mobileledger.async.DescriptionSelectedCallback;
+import net.ktnx.mobileledger.model.Data;
import net.ktnx.mobileledger.model.LedgerTransactionAccount;
import net.ktnx.mobileledger.model.MobileLedgerProfile;
import net.ktnx.mobileledger.ui.DatePickerFragment;
import net.ktnx.mobileledger.model.LedgerTransactionAccount;
import net.ktnx.mobileledger.model.MobileLedgerProfile;
import net.ktnx.mobileledger.ui.DatePickerFragment;
});
tvDate.setOnClickListener(v -> pickTransactionDate());
});
tvDate.setOnClickListener(v -> pickTransactionDate());
+ mProfile = Data.profile.getValue();
+ if (mProfile == null) throw new AssertionError();
+
MLDB.hookAutocompletionAdapter(tvDescription.getContext(), tvDescription,
MLDB.DESCRIPTION_HISTORY_TABLE, "description", false, adapter, mProfile);
MLDB.hookAutocompletionAdapter(tvAccount.getContext(), tvAccount, MLDB.ACCOUNTS_TABLE,
MLDB.hookAutocompletionAdapter(tvDescription.getContext(), tvDescription,
MLDB.DESCRIPTION_HISTORY_TABLE, "description", false, adapter, mProfile);
MLDB.hookAutocompletionAdapter(tvAccount.getContext(), tvAccount, MLDB.ACCOUNTS_TABLE,