for example when the last profile has been removed
package net.ktnx.mobileledger.model;
package net.ktnx.mobileledger.model;
-import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.LiveData;
import androidx.annotation.Nullable;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.LiveData;
cnt));
backgroundTasksRunning.postValue(cnt > 0);
}
cnt));
backgroundTasksRunning.postValue(cnt > 0);
}
- public static void setCurrentProfile(@NonNull Profile newProfile) {
+ public static void setCurrentProfile(Profile newProfile) {
profile.setValue(newProfile);
}
profile.setValue(newProfile);
}
- public static void postCurrentProfile(@NonNull Profile newProfile) {
+ public static void postCurrentProfile(Profile newProfile) {
profile.postValue(newProfile);
}
public static void refreshCurrencyData(Locale locale) {
profile.postValue(newProfile);
}
public static void refreshCurrencyData(Locale locale) {