@@ -0,0 +1,2965 @@
+package com.marverenic.music.data.store;%0A%0Aimport android.media.audiofx.Equalizer;%0Aimport android.util.Log;%0A%0Aimport com.crashlytics.android.Crashlytics;%0A%0Apublic class RemotePreferencesStore implements ReadOnlyPreferencesStore %7B%0A%0A    private static final String TAG = %22RemotePreferencesStore%22;%0A%0A    private final boolean mShowFirstStart;%0A    private final boolean mAllowLogging;%0A    private final boolean mUseMobileNetwork;%0A    private final boolean mOpenNowPlayingOnNewQueue;%0A    private final boolean mEnableNowPlayingGestures;%0A    private final int mDefaultPage;%0A    private final int mPrimaryColor;%0A    private final int mBaseColor;%0A    private final int mEqualizerPresetId;%0A    private final boolean mEqualizerEnabled;%0A    private final String mEqualizerSettings;%0A%0A    public RemotePreferencesStore(ReadOnlyPreferencesStore preferencesStore) %7B%0A        mShowFirstStart = preferencesStore.showFirstStart();%0A        mAllowLogging = preferencesStore.allowLogging();%0A        mUseMobileNetwork = preferencesStore.useMobileNetwork();%0A        mOpenNowPlayingOnNewQueue = preferencesStore.openNowPlayingOnNewQueue();%0A        mEnableNowPlayingGestures = preferencesStore.enableNowPlayingGestures();%0A        mDefaultPage = preferencesStore.getDefaultPage();%0A        mPrimaryColor = preferencesStore.getPrimaryColor();%0A        mBaseColor = preferencesStore.getBaseColor();%0A        mEqualizerPresetId = preferencesStore.getEqualizerPresetId();%0A        mEqualizerEnabled = preferencesStore.getEqualizerEnabled();%0A        mEqualizerSettings = preferencesStore.getEqualizerSettings().toString();%0A    %7D%0A%0A    @Override%0A    public boolean showFirstStart() %7B%0A        return mShowFirstStart;%0A    %7D%0A%0A    @Override%0A    public boolean allowLogging() %7B%0A        return mAllowLogging;%0A    %7D%0A%0A    @Override%0A    public boolean useMobileNetwork() %7B%0A        return mUseMobileNetwork;%0A    %7D%0A%0A    @Override%0A    public boolean openNowPlayingOnNewQueue() %7B%0A        return mOpenNowPlayingOnNewQueue;%0A    %7D%0A%0A    @Override%0A    public boolean enableNowPlayingGestures() %7B%0A        return mEnableNowPlayingGestures;%0A    %7D%0A%0A    @Override%0A    public int getDefaultPage() %7B%0A        return mDefaultPage;%0A    %7D%0A%0A    @Override%0A    public int getPrimaryColor() %7B%0A        return mPrimaryColor;%0A    %7D%0A%0A    @Override%0A    public int getBaseColor() %7B%0A        return mBaseColor;%0A    %7D%0A%0A    @Override%0A    public int getEqualizerPresetId() %7B%0A        return mEqualizerPresetId;%0A    %7D%0A%0A    @Override%0A    public boolean getEqualizerEnabled() %7B%0A        return mEqualizerEnabled;%0A    %7D%0A%0A    @Override%0A    public Equalizer.Settings getEqualizerSettings() %7B%0A        if (mEqualizerSettings != null) %7B%0A            try %7B%0A                return new Equalizer.Settings(mEqualizerSettings);%0A            %7D catch (IllegalArgumentException e) %7B%0A                Log.e(TAG, %22getEqualizerSettings: failed to parse equalizer settings%22, e);%0A                Crashlytics.logException(e);%0A            %7D%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

Create RemotePreferencesStore class