Commit 0c9ca6e1 authored by linfeng's avatar linfeng

bug修复

parent 3d55436b
...@@ -104,6 +104,11 @@ dependencies { ...@@ -104,6 +104,11 @@ dependencies {
api 'com.jakewharton:butterknife:9.0.0-rc1' api 'com.jakewharton:butterknife:9.0.0-rc1'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1' annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation 'com.android.support.constraint:constraint-layout:1.1.3'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.6.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
// api project(path: ':RvTravel') // api project(path: ':RvTravel')
api project(':component_resource') api project(':component_resource')
api project(path: ':module_home') api project(path: ':module_home')
......
...@@ -22,6 +22,7 @@ import com.frame.rv.config.RvFrameConfig; ...@@ -22,6 +22,7 @@ import com.frame.rv.config.RvFrameConfig;
import com.ruiwenliu.wrapper.util.LogUtils; import com.ruiwenliu.wrapper.util.LogUtils;
import com.rv.component.utils.LogUtil; import com.rv.component.utils.LogUtil;
import com.sh.sdk.shareinstall.ShareInstall; import com.sh.sdk.shareinstall.ShareInstall;
import com.squareup.leakcanary.LeakCanary;
import com.tencent.bugly.crashreport.CrashReport; import com.tencent.bugly.crashreport.CrashReport;
import com.umeng.commonsdk.UMConfigure; import com.umeng.commonsdk.UMConfigure;
import com.umeng.socialize.PlatformConfig; import com.umeng.socialize.PlatformConfig;
...@@ -48,7 +49,7 @@ public class RvClientApplication extends FrameApp { ...@@ -48,7 +49,7 @@ public class RvClientApplication extends FrameApp {
@Override @Override
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
Log.e("xxxxxxxxxxxxxxxxxxxxx", "RvClientApplication_onCreate"); Log.e("xxxxxxxxxxxxxxxxxxxxx", "RvClientApplication_onCreate11");
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build()); StrictMode.setVmPolicy(builder.build());
builder.detectFileUriExposure(); builder.detectFileUriExposure();
...@@ -69,7 +70,6 @@ public class RvClientApplication extends FrameApp { ...@@ -69,7 +70,6 @@ public class RvClientApplication extends FrameApp {
CrashReport.initCrashReport(getApplicationContext(), "82ebaf448b", false); CrashReport.initCrashReport(getApplicationContext(), "82ebaf448b", false);
//初始化AutoSize //初始化AutoSize
initAuto(); initAuto();
//OkGoUtil.setToken(token); //OkGoUtil.setToken(token);
OkGoUtil.initOkGo(this, true); OkGoUtil.initOkGo(this, true);
MyFrameManager.getInstance().setKeepWake(false); MyFrameManager.getInstance().setKeepWake(false);
...@@ -101,6 +101,15 @@ public class RvClientApplication extends FrameApp { ...@@ -101,6 +101,15 @@ public class RvClientApplication extends FrameApp {
ARouter.openDebug(); ARouter.openDebug();
} }
ARouter.init(RvClientApplication.this); ARouter.init(RvClientApplication.this);
/**********************内存检测****************************/
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
LeakCanary.install(this);
/**********************************************/
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="bottom" android:gravity="bottom"
android:scaleType="centerCrop" android:scaleType="matrix"
android:src="@drawable/bottom_backgroud2" android:src="@drawable/bottom_backgroud2"
android:tileMode="disabled" /> android:tileMode="disabled" />
</item> </item>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<item name="windowActionBar">true</item> <item name="windowActionBar">true</item>
<item name="android:windowContentOverlay">@null</item> <item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item> <item name="android:windowNoTitle">true</item>
<!-- 设置全屏 -->
<item name="android:windowFullscreen">true</item> <item name="android:windowFullscreen">true</item>
</style> </style>
......
...@@ -53,12 +53,15 @@ ...@@ -53,12 +53,15 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/size_15" android:layout_marginLeft="@dimen/size_15"
android:layout_marginRight="@dimen/size_15" android:layout_marginRight="@dimen/size_15"
android:paddingTop="@dimen/size_20" android:gravity="center_vertical"
android:paddingBottom="@dimen/size_20"> android:paddingTop="@dimen/size_10"
android:paddingBottom="@dimen/size_10">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="@dimen/size_8"
android:paddingBottom="@dimen/size_8"
android:src="@drawable/campsite_icon_citylocation_hint" /> android:src="@drawable/campsite_icon_citylocation_hint" />
<TextView <TextView
...@@ -72,6 +75,14 @@ ...@@ -72,6 +75,14 @@
android:text="您所在的位置" android:text="您所在的位置"
android:textColor="@color/colorGray" android:textColor="@color/colorGray"
android:textSize="@dimen/text_12" /> android:textSize="@dimen/text_12" />
<ImageView
android:id="@+id/iv_item_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/size_8"
android:visibility="gone"
android:src="@drawable/common_icon_circle_delete" />
</LinearLayout> </LinearLayout>
<View <View
......
...@@ -52,7 +52,6 @@ import com.rv.component.utils.DisplayUtil; ...@@ -52,7 +52,6 @@ import com.rv.component.utils.DisplayUtil;
import com.rv.component.utils.LogUtil; import com.rv.component.utils.LogUtil;
import com.rv.component.utils.MyUtils; import com.rv.component.utils.MyUtils;
import com.rv.component.utils.ObservableScrollView; import com.rv.component.utils.ObservableScrollView;
import com.rv.home.R; import com.rv.home.R;
import com.rv.home.R2; import com.rv.home.R2;
import com.rv.home.rv.module.ApiConfig; import com.rv.home.rv.module.ApiConfig;
...@@ -153,7 +152,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa ...@@ -153,7 +152,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
TextView tvSeeMorePopular; TextView tvSeeMorePopular;
@BindView(R2.id.rl_item_layout) @BindView(R2.id.rl_item_layout)
RelativeLayout rlItemLayout; RelativeLayout rlItemLayout;
@BindView(R2.id.scrollview) @BindView(R2.id.os_scrollview)
ObservableScrollView scrollview; ObservableScrollView scrollview;
@BindView(R2.id.ll_item_title) @BindView(R2.id.ll_item_title)
LinearLayout llItemTitle; LinearLayout llItemTitle;
...@@ -1081,7 +1080,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa ...@@ -1081,7 +1080,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
buffer.append("(").append(getCityName).append(")"); buffer.append("(").append(getCityName).append(")");
} }
if (buffer.length() > 0) { if (buffer != null && buffer.length() > 0) {
headTvGetShop.setText(buffer.toString()); headTvGetShop.setText(buffer.toString());
} else { } else {
headTvGetShop.setText(""); headTvGetShop.setText("");
...@@ -1102,7 +1101,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa ...@@ -1102,7 +1101,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
if (!TextUtils.isEmpty(outCityName)) { if (!TextUtils.isEmpty(outCityName)) {
buffer.append("(").append(outCityName).append(")"); buffer.append("(").append(outCityName).append(")");
} }
if (buffer.length() > 0) { if (buffer != null && buffer.length() > 0) {
headTvOutShop.setText(buffer.toString()); headTvOutShop.setText(buffer.toString());
} else { } else {
headTvOutShop.setText(""); headTvOutShop.setText("");
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<com.rv.component.utils.ObservableScrollView <com.rv.component.utils.ObservableScrollView
android:id="@+id/scrollview" android:id="@+id/os_scrollview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:scrollbars="none"> android:scrollbars="none">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment