public void onTimeSync(boolean result, @StringRes int strId) {
isTimeSync = result;
- if(result){
- onDataReady();
- }else{
- if(strId!=0){
- view.showRetrySyncView(strId);
- }
- }
- }
-
- @Override
- public void onUpgradeInfoFetched(boolean result, String bpversion_str,int versionCode) {
- isBoxUpdateChecked = true;
- if(result){
- view.showBoxUpgradeActivity(bpversion_str,versionCode);
- }
}
}
@@ -450,12 +450,15 @@ |
||
| 450 | 450 |
<View |
| 451 | 451 |
android:layout_width="match_parent" |
| 452 | 452 |
android:layout_height="1px" |
| 453 |
+ android:visibility="gone" |
|
| 453 | 454 |
android:background="@color/text_hint_grey_color" /> |
| 454 | 455 |
|
| 455 | 456 |
<LinearLayout |
| 456 | 457 |
android:layout_width="match_parent" |
| 457 | 458 |
android:layout_height="44dp" |
| 458 |
- android:orientation="horizontal"> |
|
| 459 |
+ android:orientation="horizontal" |
|
| 460 |
+ android:visibility="gone" |
|
| 461 |
+ > |
|
| 459 | 462 |
|
| 460 | 463 |
<TextView |
| 461 | 464 |
android:layout_width="wrap_content" |
@@ -56,46 +56,6 @@ |
||
| 56 | 56 |
android:layout_centerInParent="true" |
| 57 | 57 |
android:src="@drawable/no_photo_tip" /> |
| 58 | 58 |
|
| 59 |
- <RelativeLayout |
|
| 60 |
- android:id="@+id/sync_time_view" |
|
| 61 |
- android:layout_width="match_parent" |
|
| 62 |
- android:layout_height="match_parent" |
|
| 63 |
- android:background="@color/half_transparent"> |
|
| 64 |
- |
|
| 65 |
- <com.android.views.loadingdrawable.LoadingView |
|
| 66 |
- android:id="@+id/loading_gear_view" |
|
| 67 |
- android:layout_width="180dp" |
|
| 68 |
- android:layout_height="180dp" |
|
| 69 |
- android:layout_centerInParent="true" |
|
| 70 |
- app:loading_renderer="GearLoadingRenderer"/> |
|
| 71 |
- |
|
| 72 |
- <TextView |
|
| 73 |
- android:id="@+id/tv_sync_time_status" |
|
| 74 |
- android:layout_width="wrap_content" |
|
| 75 |
- android:layout_height="wrap_content" |
|
| 76 |
- android:textSize="16sp" |
|
| 77 |
- android:text="@string/time_syncing" |
|
| 78 |
- android:layout_below="@id/loading_gear_view" |
|
| 79 |
- android:layout_marginTop="10dp" |
|
| 80 |
- android:layout_centerHorizontal="true" |
|
| 81 |
- android:textColor="@color/white"/> |
|
| 82 |
- |
|
| 83 |
- <Button |
|
| 84 |
- android:id="@+id/btn_retry_sync" |
|
| 85 |
- android:layout_width="140dp" |
|
| 86 |
- android:layout_height="40dp" |
|
| 87 |
- android:layout_centerHorizontal="true" |
|
| 88 |
- android:layout_below="@id/tv_sync_time_status" |
|
| 89 |
- android:layout_marginTop="10dp" |
|
| 90 |
- android:background="@drawable/retry_sync_btn_rounded_rect_bg" |
|
| 91 |
- android:gravity="center" |
|
| 92 |
- android:text="@string/time_sync_retry" |
|
| 93 |
- android:textColor="@color/white" |
|
| 94 |
- android:visibility="gone" |
|
| 95 |
- android:textSize="18sp" /> |
|
| 96 |
- </RelativeLayout> |
|
| 97 |
- |
|
| 98 |
- |
|
| 99 | 59 |
<android.support.v7.widget.RecyclerView |
| 100 | 60 |
android:id="@+id/recycler_view_sessions" |
| 101 | 61 |
android:layout_width="match_parent" |