Project

General

Profile

« Previous | Next » 

Revision 1c89e2a7

Added by Leszek Koltunski over 1 year ago

What's new dialog
Bump version to 1.12.0

View differences:

src/main/java/org/distorted/main/RubikActivity.java
35 35

  
36 36
import org.distorted.config.ConfigActivity;
37 37
import org.distorted.bandaged.BandagedCreatorActivity;
38
import org.distorted.dialogs.RubikDialogStarsExplain;
38
import org.distorted.dialogs.RubikDialogWhatsNew;
39 39
import org.distorted.library.main.DistortedLibrary;
40 40

  
41 41
import org.distorted.library.main.DistortedScreen;
......
272 272
      changeIfDifferent(object,view.getObjectControl());
273 273

  
274 274
      if( mIsChinese && !mPolicyAccepted ) privacyPolicy();
275

  
276
      if( USE_IAP )
275
      else
277 276
        {
278
        if( mOldVersion!=null && !mOldVersion.equals("") && oldVersionLessThan(1,11,5) && !mCurrVersion.equals("1.11.4") )
277
        if( !mOldVersion.equals(mCurrVersion) )
279 278
          {
280
          explainStars();
279
          displayNovelties();
281 280
          }
282 281
        else
283 282
          {
284
          view.setShowStars();
283
          if( USE_IAP ) view.setShowStars();
285 284
          }
286 285
        }
287 286
      }
......
296 295

  
297 296
///////////////////////////////////////////////////////////////////////////////////////////////////
298 297

  
299
    private void explainStars()
298
    private void displayNovelties()
300 299
      {
301
      RubikDialogStarsExplain staDiag = new RubikDialogStarsExplain();
302
      staDiag.show(getSupportFragmentManager(), null);
300
      Bundle bundle = new Bundle();
301
      bundle.putString("argument",mOldVersion+" "+mCurrVersion);
302
      RubikDialogWhatsNew newDialog = new RubikDialogWhatsNew();
303
      newDialog.setArguments(bundle);
304
      newDialog.show(getSupportFragmentManager(), RubikDialogWhatsNew.getDialogTag() );
303 305
      }
304 306

  
305 307
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff