Search in sources :

Example 1 with PreferenceUtil

use of me.echeung.moemoekyun.utils.PreferenceUtil in project android-app by LISTEN-moe.

the class App method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    // Preferences
    preferenceUtil = new PreferenceUtil(this);
    // API client
    apiClient = new APIClient(this, getUserAgent(), preferenceUtil.getLibraryMode());
    // UI view models
    authViewModel = new AuthViewModel(this);
    radioViewModel = new RadioViewModel(this);
    userViewModel = new UserViewModel(this);
    // Music player service
    initNotificationChannel();
    initService();
}
Also used : RadioViewModel(me.echeung.moemoekyun.viewmodels.RadioViewModel) PreferenceUtil(me.echeung.moemoekyun.utils.PreferenceUtil) UserViewModel(me.echeung.moemoekyun.viewmodels.UserViewModel) AuthViewModel(me.echeung.moemoekyun.viewmodels.AuthViewModel) APIClient(me.echeung.listenmoeapi.APIClient)

Aggregations

APIClient (me.echeung.listenmoeapi.APIClient)1 PreferenceUtil (me.echeung.moemoekyun.utils.PreferenceUtil)1 AuthViewModel (me.echeung.moemoekyun.viewmodels.AuthViewModel)1 RadioViewModel (me.echeung.moemoekyun.viewmodels.RadioViewModel)1 UserViewModel (me.echeung.moemoekyun.viewmodels.UserViewModel)1