From a5929b7273cca057fc1593ce0537f0cceaf8dd66 Mon Sep 17 00:00:00 2001 From: "Frewen.Wong" Date: Tue, 21 Nov 2017 15:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BA=BF=E4=B8=8A=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E9=97=AE=E9=A2=98=EF=BC=8C=E7=83=AD=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/values/strings.xml | 2 +- src/com/wasu/cs/widget/BottomBar.java | 4 ++++ src/com/wasu/cs/widget/TabLinearLayout.java | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 2d84932..21eabc3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,5 +1,5 @@ This is the Base APK - UnPatched + 已补丁 \ No newline at end of file diff --git a/src/com/wasu/cs/widget/BottomBar.java b/src/com/wasu/cs/widget/BottomBar.java index 13b25ff..0b8d7cb 100644 --- a/src/com/wasu/cs/widget/BottomBar.java +++ b/src/com/wasu/cs/widget/BottomBar.java @@ -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)); diff --git a/src/com/wasu/cs/widget/TabLinearLayout.java b/src/com/wasu/cs/widget/TabLinearLayout.java index 8923b10..498d49a 100644 --- a/src/com/wasu/cs/widget/TabLinearLayout.java +++ b/src/com/wasu/cs/widget/TabLinearLayout.java @@ -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( -- 2.21.0