Project

General

Profile

« Previous | Next » 

Revision 4429d6c8

Added by Leszek Koltunski over 2 years ago

Downloading updates: dialog progress.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogUpdateView.java
66 66

  
67 67
    TextView title = mView.findViewById(R.id.updates_pane_title);
68 68
    title.setText(info.mObjectLongName);
69
    TextView version = mView.findViewById(R.id.updates_pane_version);
70
    String strVersion = info.mUpdateObject
71
                        ? "v. "+JsonWriter.VERSION_OBJECT_MAJOR+"."+info.mObjectMinorVersion
72
                        : "v. "+JsonWriter.VERSION_EXTRAS_MAJOR+"."+info.mExtrasMinorVersion;
73
    version.setText(strVersion);
74 69
    TextView description = mView.findViewById(R.id.updates_pane_description);
75 70
    description.setText(info.mDescription);
76 71

  
......
81 76
    mView.setLayoutParams(pView);
82 77

  
83 78
    title.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize);
84
    version.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize);
85 79
    description.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize);
86 80
    button.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize);
87 81

  
88 82
    title.setLayoutParams(pText);
89
    version.setLayoutParams(pText);
90 83
    description.setLayoutParams(pText);
91 84
    button.setLayoutParams(pButt);
92 85

  

Also available in: Unified diff