liujiangyao před 8 roky
rodič
revize
a2a3ec45c5

+ 20 - 16
app/src/main/java/com/kfzs/duanduan/fragment/FgtMainGame.java

@@ -195,24 +195,28 @@ public class FgtMainGame extends BaseCompatFragment {
      * 加载游戏列表
      */
     private void loadGameLists() {
-        APIRequest bannerRequest = APIRequestInstance.getReq(TAG, UrlBll.AppStoreApi.RECOMMEND_GAME_GROUPS, null, new Response.Listener<ApiResponseOuterClass.ApiResponse>() {
+        try {
+            APIRequest bannerRequest = APIRequestInstance.getReq(TAG, UrlBll.AppStoreApi.RECOMMEND_GAME_GROUPS, null, new Response.Listener<ApiResponseOuterClass.ApiResponse>() {
+
+                @Override
+                public void onResponse(ApiResponseOuterClass.ApiResponse apiResponse) {
+                    int code = apiResponse.getCodeValue();
+                    switch (code) {
+                        case ApiResponseOuterClass.Codes.Success_VALUE:
+                            IndexGameOuterClass.IndexGame indexGame = apiResponse.getIndexGame();
+                            loadViews(indexGame);
+                            break;
+                        default:
+                            break;
+                    }
+                    refreshOver();
 
-            @Override
-            public void onResponse(ApiResponseOuterClass.ApiResponse apiResponse) {
-                int code = apiResponse.getCodeValue();
-                switch (code) {
-                    case ApiResponseOuterClass.Codes.Success_VALUE:
-                        IndexGameOuterClass.IndexGame indexGame = apiResponse.getIndexGame();
-                        loadViews(indexGame);
-                        break;
-                    default:
-                        break;
                 }
-                refreshOver();
-
-            }
-        }, HelperUtils.makeErr(getString(R.string.toast_init_data_fail)));
-        KFZSNetwork.addRequest(bannerRequest);
+            }, HelperUtils.makeErr(getString(R.string.toast_init_data_fail)));
+            KFZSNetwork.addRequest(bannerRequest);
+        }catch (Exception e){
+            e.printStackTrace();
+        }
     }
 
 

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/util/Jump2View.java

@@ -62,7 +62,7 @@ public class Jump2View {
 
 
     /**
-     * 跳到安全中
+     * 跳到安全中
      * @param context
      * @param o
      */

+ 2 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/AccountAndSecurityAct.java

@@ -16,6 +16,7 @@ import com.sheep.gamegroup.event.UserNameChange;
 import com.sheep.gamegroup.model.entity.UserInfoEntity;
 import com.sheep.gamegroup.presenter.AccountAndSecuritContract;
 import com.sheep.gamegroup.presenter.AccountAndSecuritPresenter;
+import com.sheep.gamegroup.util.ActivityManager;
 import com.sheep.gamegroup.util.Jump2View;
 import com.sheep.gamegroup.util.MyDbManager;
 import com.sheep.jiuyan.samllsheep.R;
@@ -185,7 +186,7 @@ public class AccountAndSecurityAct extends BaseActivity implements AccountAndSec
             }
         });
         SpUtils.login(this, "");
-        SheepApp.removeAllActivity();
+        ActivityManager.getInstance().finishAllActivity();
         Jump2View.getInstance().goLoginView(AccountAndSecurityAct.this,null);
         finish();
     }

+ 3 - 0
app/src/main/res/drawable/button_full_normal_main_click.xml

@@ -7,4 +7,7 @@
         android:width="1dp"
         android:color="@color/theme_app_highlight_more" />
     <solid android:color="@color/theme_app_highlight_more" />
+    <gradient
+        android:startColor="@color/blue_end"
+        android:endColor="@color/blue_start"/>
 </shape>

+ 1 - 1
app/src/main/res/drawable/selector_button_full_main.xml

@@ -4,5 +4,5 @@
   <item android:state_checked="true" android:drawable="@drawable/button_full_normal_main_click"/>
   <item android:state_selected="true" android:drawable="@drawable/button_full_normal_main_click"/>
   <item android:state_pressed="true" android:drawable="@drawable/button_full_normal_main_click"/>
-  <item android:drawable="@drawable/button_full_normal_main"/>
+  <item android:drawable="@drawable/sp_bg_gradient_rectangle_blue"/>
 </selector>

+ 2 - 2
app/src/main/res/layout/personalcenter_act_layout.xml

@@ -23,9 +23,9 @@
             android:layout_alignParentRight="true"
             android:layout_centerVertical="true"
             android:text="提 现"
-            android:textColor="@color/black"
+            android:textColor="@color/white"
             android:textSize="20dp"
-            android:background="@drawable/sp_bg_yellow"
+            android:background="@drawable/sp_bg_gradient_rectangle_blue"
             android:gravity="center"
             android:padding="5dp"/>
         <TextView

+ 2 - 1
app/src/main/res/layout/withdrawal_layout.xml

@@ -123,7 +123,8 @@
                     android:numColumns="3"
                     android:layout_marginTop="@dimen/content_padding_20"
                     android:visibility="visible"
-                    android:background="@color/white"/>
+                    android:background="@color/white"
+                    android:listSelector="@color/transparent"/>
             </android.support.constraint.ConstraintLayout>
             <TextView
                 android:id="@+id/withdrawal_sure"

+ 1 - 1
app/src/main/res/layout/x_account_security_layout.xml

@@ -225,7 +225,7 @@
         android:layout_marginTop="40dp"
         android:layout_marginLeft="20dp"
         android:layout_marginRight="20dp"
-        android:background="@drawable/selector_button_full_main"
+        android:background="@drawable/radidius_bg_tv_blue_gray_selector"
         android:gravity="center"
         android:padding="@dimen/content_padding_10"
         android:text="退出登录"