commit 5df54787ca4833249f0976300d09f7245c191a97
Author: LeszekKoltunski <leszek@koltunski.pl>
Date:   Mon May 19 22:24:33 2025 +0200

    simplify Preferences interface of OSInterface

diff --git a/src/main/java/org/distorted/bandaged/BandagedActivity.java b/src/main/java/org/distorted/bandaged/BandagedActivity.java
index c840154d..00f69a53 100644
--- a/src/main/java/org/distorted/bandaged/BandagedActivity.java
+++ b/src/main/java/org/distorted/bandaged/BandagedActivity.java
@@ -257,7 +257,6 @@ public class BandagedActivity extends BaseActivity
           SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
           SharedPreferences.Editor editor = preferences.edit();
           OSInterface os = new OSInterface(this,null);
-          os.setEditor(editor);
           object.removePreferences(os);
           editor.apply();
           }
diff --git a/src/main/java/org/distorted/config/ConfigActivity.java b/src/main/java/org/distorted/config/ConfigActivity.java
index 2c1f3264..bc24475b 100644
--- a/src/main/java/org/distorted/config/ConfigActivity.java
+++ b/src/main/java/org/distorted/config/ConfigActivity.java
@@ -97,7 +97,6 @@ public class ConfigActivity extends BaseActivity
 
       SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
       OSInterface os = view.getInterface();
-      os.setPreferences(preferences);
       restorePreferences(preferences);
 
       if( mScreen==null ) mScreen = new ConfigScreen();
@@ -160,8 +159,6 @@ public class ConfigActivity extends BaseActivity
       SharedPreferences.Editor editor = preferences.edit();
 
       ConfigSurfaceView view = findViewById(R.id.configSurfaceView);
-      OSInterface os = view.getInterface();
-      os.setEditor(editor);
       view.getObjectControl().savePreferences();
 
       editor.putBoolean("configDisplayDialog", mDisplayMessageDialog );
diff --git a/src/main/java/org/distorted/play/PlayActivity.java b/src/main/java/org/distorted/play/PlayActivity.java
index 1609e543..99069d7d 100644
--- a/src/main/java/org/distorted/play/PlayActivity.java
+++ b/src/main/java/org/distorted/play/PlayActivity.java
@@ -199,8 +199,6 @@ public class PlayActivity extends BaseActivity implements DialogScores.ScoresInv
       }
 
     PlayView view = findViewById(R.id.playView);
-    OSInterface os = view.getInterface();
-    os.setEditor(editor);
     view.getObjectControl().savePreferences();
 
     RubikScores scores = RubikScores.getInstance();
@@ -221,8 +219,6 @@ public class PlayActivity extends BaseActivity implements DialogScores.ScoresInv
     if( !mJustStarted ) ScreenList.restorePreferences(preferences);
 
     PlayView view = findViewById(R.id.playView);
-    OSInterface os = view.getInterface();
-    os.setPreferences(preferences);
     view.getObjectControl().restorePreferences();
     }
 
