App.getAppContext().unbindService(orderServiceConnection);
149 136
         App.getAppContext().unregisterReceiver(wifiReceiver);
@@ -162,13 +149,6 @@ class MainPresenter implements MainContract.Presenter,SyncTimeInteractor.SyncTim
162 149
         return sessionBean;
163 150
     }
164 151
 
165
-    @Override
166
-    public void resyncTime() {
167
-        if(syncTimeInteractor!=null){
168
-            syncTimeInteractor.cancelJob();
169
-            syncTimeInteractor.startJob();
170
-        }
171
-    }
172 152
 
173 153
     private long getSessionDateInLongFormat(){
174 154
         SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
@@ -255,21 +235,6 @@ class MainPresenter implements MainContract.Presenter,SyncTimeInteractor.SyncTim
255 235
     @Override
256 236
     public void onTimeSync(boolean result, @StringRes int strId) {
257 237
         isTimeSync = result;
258
-        if(result){
259
-            onDataReady();
260
-        }else{
261
-            if(strId!=0){
262
-                view.showRetrySyncView(strId);
263
-            }
264
-        }
265
-    }
266
-
267
-    @Override
268
-    public void onUpgradeInfoFetched(boolean result, String bpversion_str,int versionCode) {
269
-        isBoxUpdateChecked = true;
270
-        if(result){
271
-            view.showBoxUpgradeActivity(bpversion_str,versionCode);
272
-        }
273 238
     }
274 239
 
275 240
 }

+ 4 - 1
app/src/main/res/layout/activity_briefs.xml

@@ -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"

+ 0 - 40
app/src/main/res/layout/activity_main.xml

@@ -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"

pai2 - Gogs: Go Git Service

拍爱

Brightcells: 0a58248c81 Realize tour guide upload photo when auth in FE преди 9 години
..
migrations 8b7c49ddb9 add app to add page user_agreement/contact_us преди 10 години
templates 0a58248c81 Realize tour guide upload photo when auth in FE преди 9 години
__init__.py 8b7c49ddb9 add app to add page user_agreement/contact_us преди 10 години
admin.py fabef63211 set line_length=200 for isort преди 10 години
models.py fabef63211 set line_length=200 for isort преди 10 години
tests.py fabef63211 set line_length=200 for isort преди 10 години
views.py 8a213207ea Add tour guide oauth преди 9 години