Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WasuTV4.0_Tinker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhijiang.wang
WasuTV4.0_Tinker
Commits
a5929b72
Commit
a5929b72
authored
Nov 21, 2017
by
Frewen.Wong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改线上存在问题,热更新修复。
parent
3774b1ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
strings.xml
res/values/strings.xml
+1
-1
BottomBar.java
src/com/wasu/cs/widget/BottomBar.java
+4
-0
TabLinearLayout.java
src/com/wasu/cs/widget/TabLinearLayout.java
+4
-4
No files found.
res/values/strings.xml
View file @
a5929b72
<?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
src/com/wasu/cs/widget/BottomBar.java
View file @
a5929b72
...
...
@@ -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
));
...
...
src/com/wasu/cs/widget/TabLinearLayout.java
View file @
a5929b72
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment