Commit 85b63df3 authored by linfeng's avatar linfeng

Merge branch 'dev-member-john' of http://113.105.137.151:22280/lify/rvapp

parents e31c9363 6ad60668
...@@ -144,7 +144,7 @@ public class MainActivity extends BaseActivity<CommonPresenter>{ ...@@ -144,7 +144,7 @@ public class MainActivity extends BaseActivity<CommonPresenter>{
.apkPath(versionCheckBean.getData().getDownloadUrl()) .apkPath(versionCheckBean.getData().getDownloadUrl())
.updateInfo(versionCheckBean.getData().getContent()) .updateInfo(versionCheckBean.getData().getContent())
.apkSize(versionCheckBean.getData().getPackagesize()) .apkSize(versionCheckBean.getData().getPackagesize())
.isForce(versionCheckBean.getData().getIsCompe() == 0 ? false : true) .isForce(versionCheckBean.getData().getIsCompel() == 0 ? false : true)
.update(); .update();
} }
} }
......
...@@ -85,6 +85,12 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> { ...@@ -85,6 +85,12 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
return R.layout.rv_act_share_image; return R.layout.rv_act_share_image;
} }
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
StatusBarUtil.setRootViewFitsSystemWindows(mActivity, false);
}
@Override @Override
protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) { protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) {
showTitle(false); showTitle(false);
......
...@@ -3,36 +3,44 @@ ...@@ -3,36 +3,44 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/colorYellow" android:background="@color/colorYellow"
android:orientation="vertical" android:orientation="vertical"
tools:context=".rv.module.ui.main.home.ShareImageActivity"> tools:context=".rv.module.ui.main.home.ShareImageActivity">
<RelativeLayout <com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
app:use_type="use_padding_top"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/size_50"> android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/img_title_left" <RelativeLayout
android:layout_width="@dimen/size_32" android:layout_width="match_parent"
android:layout_height="@dimen/size_32" android:layout_height="@dimen/size_50">
android:layout_alignParentLeft="true"
android:layout_centerVertical="true" <ImageView
android:layout_marginLeft="@dimen/size_5" android:id="@+id/img_title_left"
android:clickable="true" android:layout_width="@dimen/size_32"
android:padding="@dimen/size_8" android:layout_height="@dimen/size_32"
android:src="@drawable/rv_common_icon_back_dark" /> android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
<TextView android:layout_marginLeft="@dimen/size_5"
android:id="@+id/tv_share" android:clickable="true"
android:layout_width="wrap_content" android:padding="@dimen/size_8"
android:layout_height="wrap_content" android:src="@drawable/rv_common_icon_back_dark" />
android:layout_alignParentRight="true"
android:layout_centerInParent="true" <TextView
android:padding="@dimen/size_15" android:id="@+id/tv_share"
android:text="分享" android:layout_width="wrap_content"
android:textColor="@color/colorWrite" android:layout_height="wrap_content"
android:textSize="@dimen/text_16" /> android:layout_alignParentRight="true"
</RelativeLayout> android:layout_centerInParent="true"
android:padding="@dimen/size_15"
android:text="分享"
android:textColor="@color/colorWrite"
android:textSize="@dimen/text_16" />
</RelativeLayout>
</com.ruiwenliu.wrapper.statusbar.StatusBarHeightView>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -114,7 +114,7 @@ public class SettingActivity extends BaseStatusActivity<CommonPresenter> { ...@@ -114,7 +114,7 @@ public class SettingActivity extends BaseStatusActivity<CommonPresenter> {
.apkPath(versionCheckBean.getData().getDownloadUrl()) .apkPath(versionCheckBean.getData().getDownloadUrl())
.updateInfo(versionCheckBean.getData().getContent()) .updateInfo(versionCheckBean.getData().getContent())
.apkSize(versionCheckBean.getData().getPackagesize()) .apkSize(versionCheckBean.getData().getPackagesize())
.isForce(versionCheckBean.getData().getIsCompe() == 0 ? false : true) .isForce(versionCheckBean.getData().getIsCompel() == 0 ? false : true)
.update(); .update();
} }
} else { } else {
......
...@@ -31,7 +31,16 @@ public class VersionCheckBean extends BaseBean { ...@@ -31,7 +31,16 @@ public class VersionCheckBean extends BaseBean {
private String content; private String content;
private String downloadUrl; private String downloadUrl;
private int downloadSwitch; private int downloadSwitch;
private int isCompe ; private int isCompel ;
public int getIsCompel() {
return isCompel;
}
public void setIsCompel(int isCompel) {
this.isCompel = isCompel;
}
private int weigh; private int weigh;
private long crtTime; private long crtTime;
private int isDel; private int isDel;
...@@ -124,12 +133,5 @@ public class VersionCheckBean extends BaseBean { ...@@ -124,12 +133,5 @@ public class VersionCheckBean extends BaseBean {
this.isDel = isDel; this.isDel = isDel;
} }
public int getIsCompe() {
return isCompe;
}
public void setIsCompe(int isCompe) {
this.isCompe = isCompe;
}
} }
} }
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