- public static ObservableValue<Boolean> optShowOnlyStarred = new ObservableValue<>();
- public static MutableLiveData<String> accountFilter = new MutableLiveData<>();
- private static AtomicInteger backgroundTaskCount = new AtomicInteger(0);
- private static Locker profilesLocker = new Locker();
- private static RetrieveTransactionsTask retrieveTransactionsTask;
+ public static final MutableLiveData<Currency.Position> currencySymbolPosition =
+ new MutableLiveData<>();
+ public static final MutableLiveData<Boolean> currencyGap = new MutableLiveData<>(true);
+ public static final MutableLiveData<Locale> locale = new MutableLiveData<>();
+ public static final MutableLiveData<Boolean> drawerOpen = new MutableLiveData<>(false);
+ public static final MutableLiveData<Date> lastUpdateDate = new MutableLiveData<>(null);
+ public static final MutableLiveData<Integer> lastUpdateTransactionCount =
+ new MutableLiveData<>(0);
+ public static final MutableLiveData<Integer> lastUpdateAccountCount = new MutableLiveData<>(0);
+ public static final ObservableValue<String> lastTransactionsUpdateText =
+ new ObservableValue<>();
+ public static final ObservableValue<String> lastAccountsUpdateText = new ObservableValue<>();
+ private static final MutableLiveData<MobileLedgerProfile> profile =
+ new InertMutableLiveData<>();
+ private static final AtomicInteger backgroundTaskCount = new AtomicInteger(0);
+ private static final Locker profilesLocker = new Locker();
+
+ static {
+ locale.setValue(Locale.getDefault());
+ }
+
+ @NonNull
+ public static MobileLedgerProfile getProfile() {
+ return Objects.requireNonNull(profile.getValue());
+ }