Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
scorpio
device_buzztime_RKUpdateServiceCode
Commits
090c77e6
Commit
090c77e6
authored
11 years ago
by
mmk
Browse files
Options
Download
Email Patches
Plain Diff
version 1.7.1:
1.解决升级包描述页字符串不能换行问题
parent
ee74740e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
AndroidManifest.xml
AndroidManifest.xml
+2
-2
res/layout/notify_dialog.xml
res/layout/notify_dialog.xml
+1
-1
src/android/rockchip/update/service/OtaUpdateNotifyActivity.java
...roid/rockchip/update/service/OtaUpdateNotifyActivity.java
+5
-1
src/android/rockchip/update/service/RKUpdateService.java
src/android/rockchip/update/service/RKUpdateService.java
+1
-1
No files found.
AndroidManifest.xml
View file @
090c77e6
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"android.rockchip.update.service"
android:versionCode=
"2
7
"
android:versionName=
"1.7.
0
"
>
android:versionCode=
"2
8
"
android:versionName=
"1.7.
1
"
>
<!-- Permission to show the UI for firmware update -->
<permission
android:name=
"android.rockchip.update.permission.SHOW_UI"
...
...
This diff is collapsed.
Click to expand it.
res/layout/notify_dialog.xml
View file @
090c77e6
...
...
@@ -25,7 +25,7 @@
android:id=
"@+id/description"
android:textIsSelectable=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"
center_vertical|center_horizontal
"
android:gravity=
"
left
"
android:textAppearance=
"?android:attr/textAppearanceMedium"
>
</TextView>
</LinearLayout>
...
...
This diff is collapsed.
Click to expand it.
src/android/rockchip/update/service/OtaUpdateNotifyActivity.java
View file @
090c77e6
...
...
@@ -9,6 +9,7 @@ import android.content.Intent;
import
android.content.ServiceConnection
;
import
android.os.Bundle
;
import
android.os.IBinder
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.Window
;
import
android.view.WindowManager
;
...
...
@@ -74,8 +75,11 @@ public class OtaUpdateNotifyActivity extends Activity {
}
TextView
descriptView
=
(
TextView
)
this
.
findViewById
(
R
.
id
.
description
);
descriptView
.
setMinLines
(
5
);
descriptView
.
setMaxLines
(
20
);
if
(
mDescription
!=
null
)
{
descriptView
.
setText
(
mDescription
);
descriptView
.
setText
(
mDescription
.
replace
(
"@#"
,
"\n"
));
Log
.
d
(
TAG
,
"description: "
+
mDescription
);
}
Button
btn_ok
=
(
Button
)
this
.
findViewById
(
R
.
id
.
button_ok
);
...
...
This diff is collapsed.
Click to expand it.
src/android/rockchip/update/service/RKUpdateService.java
View file @
090c77e6
...
...
@@ -35,7 +35,7 @@ import android.widget.Toast;
import
android.os.SystemProperties
;
public
class
RKUpdateService
extends
Service
{
public
static
final
String
VERSION
=
"1.7.
0
"
;
public
static
final
String
VERSION
=
"1.7.
1
"
;
private
static
final
String
TAG
=
"RKUpdateService"
;
private
static
final
boolean
DEBUG
=
true
;
private
static
final
boolean
mIsNotifyDialog
=
true
;
...
...
This diff is collapsed.
Click to expand it.
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