Commit a5929b72 authored by Frewen.Wong's avatar Frewen.Wong

修改线上存在问题,热更新修复。

parent 3774b1ad
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="patch_info">This is the Base APK</string>
<string name="patch_text_string">UnPatched</string>
<string name="patch_text_string">已补丁</string>
</resources>
\ No newline at end of file
......@@ -103,6 +103,10 @@ public class BottomBar extends RelativeLayout {
}
/**
* For Test
* 进行热更新测试,修改resource文件,热更新。
*/
private void setPatchText() {
if (ChannelFlavor.isBenQ()) {
patchText.setText("BenQ" + getContext().getResources().getString(R.string.patch_text_string));
......
......@@ -50,10 +50,10 @@ public class TabLinearLayout extends LinearLayout {
private void init(Context context) {
this.context = context;
setChildrenDrawingOrderEnabled(true);
//测试代码,设置
TextView textView = new TextView(context);
textView.setText(context.getText(R.string.patch_info));
addView(textView);
//测试热更新代码代码,修改影响功能的代码块。
// TextView textView = new TextView(context);
// textView.setText(context.getText(R.string.patch_info));
// addView(textView);
}
private int mFocusEdgeOffset = getResources().getDimensionPixelSize(
......
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