Project

General

Profile

« Previous | Next » 

Revision 46be3ddf

Added by Leszek Koltunski over 2 years ago

progress with the Updates: download the jsons.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogUpdates.java
46 46

  
47 47
///////////////////////////////////////////////////////////////////////////////////////////////////
48 48

  
49
public class RubikDialogUpdates extends AppCompatDialogFragment implements RubikNetwork.Updatee
49
public class RubikDialogUpdates extends AppCompatDialogFragment implements RubikNetwork.IconReceiver, RubikNetwork.Updatee
50 50
  {
51 51
  private TextView mText;
52 52
  private LinearLayout mLayout;
......
218 218

  
219 219
  public void errorUpdate()
220 220
    {
221
    mText.setText("Network error");
221
    FragmentActivity act = getActivity();
222
    if( act!=null ) mText.setText(act.getString(R.string.networkError));
222 223
    }
223 224

  
224 225
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff