Project

General

Profile

« Previous | Next » 

Revision 5f3801d3

Added by Leszek Koltunski over 2 years ago

Progress downloading updates: dialog.

View differences:

src/main/java/org/distorted/screens/RubikScreenPlay.java
37 37
import android.widget.RelativeLayout;
38 38
import android.widget.TextView;
39 39

  
40
import org.distorted.dialogs.RubikDialogUpdates;
40 41
import org.distorted.network.RubikNetwork;
41 42
import org.distorted.network.RubikUpdates;
42 43
import org.distorted.objectlib.main.ObjectControl;
......
77 78
  private PopupWindow mObjectPopup, mMenuPopup, mPlayPopup;
78 79
  private LinearLayout mPlayLayout;
79 80
  private TextView mBubbleUpdates;
81
  private RubikUpdates mUpdates;
80 82
  private int mObjectSize, mMenuLayoutWidth, mMenuLayoutHeight, mPlayLayoutWidth;
81 83
  private int mLevelValue;
82 84
  private float mButtonSize, mMenuItemSize, mMenuTextSize;
......
347 349
      @Override
348 350
      public void onClick(View v)
349 351
        {
350
        android.util.Log.e("D", "Download!!");
352
        if( mObjectPopup!=null ) mObjectPopup.dismiss();
353
        RubikDialogUpdates uDiag = new RubikDialogUpdates();
354
        uDiag.setUpdates(mUpdates);
355
        uDiag.show( act.getSupportFragmentManager(), RubikDialogUpdates.getDialogTag() );
351 356
        }
352 357
      });
353 358

  
......
701 706

  
702 707
  public void receiveUpdate(RubikUpdates updates)
703 708
    {
704
    int num = updates.getNumberOfUpdates();
709
    mUpdates = updates;
710
    int num = mUpdates.getNumberOfUpdates();
705 711

  
706 712
    if( num>0 )
707 713
      {

Also available in: Unified diff