Project

General

Profile

« Previous | Next » 

Revision 85770de9

Added by Leszek Koltunski over 2 years ago

Improvements.

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorActivity.java
264 264

  
265 265
///////////////////////////////////////////////////////////////////////////////////////////////////
266 266

  
267
    public void deleteObject(String name, int numCubits)
267
    public void deleteObject(String name)
268 268
      {
269 269
      mScreen.deleteObject(this,name);
270 270

  
......
272 272
      files.deleteIcon(this,name);
273 273
      files.deleteJsonObject(this,name);
274 274

  
275
      /*
275 276
      SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
276 277
      SharedPreferences.Editor editor = preferences.edit();
277
      String objName = name+"_";
278
      for(int i=0; i<numCubits; i++) editor.remove(objName+i);
278
      // TODO: remove the cubit quats
279 279
      editor.apply();
280
      */
280 281
      }
281 282

  
282 283
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/dialogs/RubikDialogBandagedDelete.java
87 87
      public void onClick(DialogInterface dialog, int which)
88 88
        {
89 89
        BandagedCreatorActivity bact = (BandagedCreatorActivity)getContext();
90

  
91
        if( bact!=null )
92
          {
93
          bact.deleteObject(objectName,26);
94
          }
90
        if( bact!=null ) bact.deleteObject(objectName);
95 91
        }
96 92
      });
97 93

  

Also available in: Unified diff