Project

General

Profile

« Previous | Next » 

Revision 21a1bb5d

Added by Leszek Koltunski about 1 year ago

Move the SharedPreferences to the OSInterface

View differences:

src/main/java/org/distorted/bandaged/BandagedPlayScreen.java
20 20
import org.distorted.main.R;
21 21
import org.distorted.objectlib.effects.BaseEffect;
22 22
import org.distorted.objectlib.main.ObjectControl;
23
import org.distorted.os.OSInterface;
23 24

  
24 25
///////////////////////////////////////////////////////////////////////////////////////////////////
25 26

  
......
175 176
    {
176 177
    mMovesController.savePreferences(mKey,editor);
177 178
    ObjectControl control = act.getControl();
178
    control.savePreferences(editor);
179
    OSInterface os = (OSInterface)control.getOS();
180
    os.setEditor(editor);
181
    control.savePreferences();
179 182
    }
180 183

  
181 184
///////////////////////////////////////////////////////////////////////////////////////////////////
......
184 187
    {
185 188
    mMovesController.restorePreferences(act,mKey,preferences);
186 189
    ObjectControl control = act.getControl();
187
    control.restorePreferences(preferences);
190
    OSInterface os = (OSInterface)control.getOS();
191
    os.setPreferences(preferences);
192
    control.restorePreferences();
188 193
    }
189 194
}

Also available in: Unified diff