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
halo
packages_apps_TvSettings
Commits
795cc41f
Commit
795cc41f
authored
10 years ago
by
Tim Kilbourn
Browse files
Options
Download
Email Patches
Plain Diff
Show device serial number in Settings > About
Bug: 17514695 Change-Id: Id09c77fea8281746764f4c71c68867355cd7cd71
parent
65a5a7d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Settings/res/values/strings.xml
Settings/res/values/strings.xml
+2
-0
Settings/src/com/android/tv/settings/about/AboutActivity.java
...ings/src/com/android/tv/settings/about/AboutActivity.java
+8
-2
No files found.
Settings/res/values/strings.xml
View file @
795cc41f
...
...
@@ -243,6 +243,8 @@
<string
name=
"about_model"
>
Model
</string>
<!-- Preference which shows version. [CHAR LIMIT=50] -->
<string
name=
"about_version"
>
Version
</string>
<!-- Preference which shows serial number. [CHAR LIMIT=50] -->
<string
name=
"about_serial"
>
Serial number
</string>
<!-- Preference which shows build version. [CHAR LIMIT=50] -->
<string
name=
"about_build"
>
Build
</string>
<!-- Device Info screen. Countdown for user taps to enable development settings [CHAR LIMIT=NONE] -->
...
...
This diff is collapsed.
Click to expand it.
Settings/src/com/android/tv/settings/about/AboutActivity.java
View file @
795cc41f
...
...
@@ -73,7 +73,7 @@ public class AboutActivity extends DialogActivity implements ActionAdapter.Liste
/**
* Intent action of device name activity.
*/
private
static
final
String
SETTINGS_
CAST_
DEVICE_NAME_INTENT_ACTION
=
private
static
final
String
SETTINGS_DEVICE_NAME_INTENT_ACTION
=
"android.settings.DEVICE_NAME"
;
/**
...
...
@@ -189,7 +189,7 @@ public class AboutActivity extends DialogActivity implements ActionAdapter.Liste
.
key
(
"name"
)
.
title
(
getString
(
R
.
string
.
device_name
))
.
description
(
DeviceManager
.
getDeviceName
(
this
))
.
intent
(
new
Intent
(
SETTINGS_
CAST_
DEVICE_NAME_INTENT_ACTION
))
.
intent
(
new
Intent
(
SETTINGS_DEVICE_NAME_INTENT_ACTION
))
.
build
());
actions
.
add
(
new
Action
.
Builder
()
.
key
(
KEY_LEGAL_INFO
)
...
...
@@ -207,6 +207,12 @@ public class AboutActivity extends DialogActivity implements ActionAdapter.Liste
.
description
(
Build
.
VERSION
.
RELEASE
)
.
enabled
(
false
)
.
build
());
actions
.
add
(
new
Action
.
Builder
()
.
key
(
"serial"
)
.
title
(
getString
(
R
.
string
.
about_serial
))
.
description
(
Build
.
SERIAL
)
.
enabled
(
false
)
.
build
());
actions
.
add
(
new
Action
.
Builder
()
.
key
(
KEY_BUILD
)
.
title
(
getString
(
R
.
string
.
about_build
))
...
...
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