Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
242c066d
Commit
242c066d
authored
12 years ago
by
Satoshi Kataoka
Browse files
Options
Downloads
Patches
Plain Diff
Use correct appname resource
Bug: 6789579 Change-Id: Id11435a28d6c5b6c72867814e23f5e62429080f8
parent
a6fae701
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/setup/SetupActivity.java
+8
-7
8 additions, 7 deletions
...rc/com/android/inputmethod/latin/setup/SetupActivity.java
with
8 additions
and
7 deletions
java/src/com/android/inputmethod/latin/setup/SetupActivity.java
+
8
−
7
View file @
242c066d
...
@@ -112,12 +112,13 @@ public final class SetupActivity extends Activity {
...
@@ -112,12 +112,13 @@ public final class SetupActivity extends Activity {
// TODO: Use sans-serif-thin font family depending on the system locale white list and
// TODO: Use sans-serif-thin font family depending on the system locale white list and
// the SDK version.
// the SDK version.
final
TextView
titleView
=
(
TextView
)
findViewById
(
R
.
id
.
setup_title
);
final
TextView
titleView
=
(
TextView
)
findViewById
(
R
.
id
.
setup_title
);
titleView
.
setText
(
getString
(
R
.
string
.
setup_title
,
getString
(
R
.
string
.
english_ime_name
)));
final
int
appName
=
getApplicationInfo
().
labelRes
;
titleView
.
setText
(
getString
(
R
.
string
.
setup_title
,
getString
(
appName
)));
mStepIndicatorView
=
(
SetupStepIndicatorView
)
findViewById
(
R
.
id
.
setup_step_indicator
);
mStepIndicatorView
=
(
SetupStepIndicatorView
)
findViewById
(
R
.
id
.
setup_step_indicator
);
final
SetupStep
step1
=
new
SetupStep
(
findViewById
(
R
.
id
.
setup_step1
),
final
SetupStep
step1
=
new
SetupStep
(
findViewById
(
R
.
id
.
setup_step1
),
R
.
string
.
setup_step1_title
,
R
.
string
.
setup_step1_instruction
,
appName
,
R
.
string
.
setup_step1_title
,
R
.
string
.
setup_step1_instruction
,
R
.
drawable
.
ic_settings_language
,
R
.
string
.
language_settings
);
R
.
drawable
.
ic_settings_language
,
R
.
string
.
language_settings
);
step1
.
setAction
(
new
Runnable
()
{
step1
.
setAction
(
new
Runnable
()
{
@Override
@Override
...
@@ -129,7 +130,7 @@ public final class SetupActivity extends Activity {
...
@@ -129,7 +130,7 @@ public final class SetupActivity extends Activity {
mSetupSteps
.
addStep
(
STEP_1
,
step1
);
mSetupSteps
.
addStep
(
STEP_1
,
step1
);
final
SetupStep
step2
=
new
SetupStep
(
findViewById
(
R
.
id
.
setup_step2
),
final
SetupStep
step2
=
new
SetupStep
(
findViewById
(
R
.
id
.
setup_step2
),
R
.
string
.
setup_step2_title
,
R
.
string
.
setup_step2_instruction
,
appName
,
R
.
string
.
setup_step2_title
,
R
.
string
.
setup_step2_instruction
,
0
/* actionIcon */
,
R
.
string
.
select_input_method
);
0
/* actionIcon */
,
R
.
string
.
select_input_method
);
step2
.
setAction
(
new
Runnable
()
{
step2
.
setAction
(
new
Runnable
()
{
@Override
@Override
...
@@ -142,7 +143,7 @@ public final class SetupActivity extends Activity {
...
@@ -142,7 +143,7 @@ public final class SetupActivity extends Activity {
mSetupSteps
.
addStep
(
STEP_2
,
step2
);
mSetupSteps
.
addStep
(
STEP_2
,
step2
);
final
SetupStep
step3
=
new
SetupStep
(
findViewById
(
R
.
id
.
setup_step3
),
final
SetupStep
step3
=
new
SetupStep
(
findViewById
(
R
.
id
.
setup_step3
),
R
.
string
.
setup_step3_title
,
0
/* instruction */
,
appName
,
R
.
string
.
setup_step3_title
,
0
/* instruction */
,
R
.
drawable
.
sym_keyboard_language_switch
,
R
.
string
.
setup_step3_instruction
);
R
.
drawable
.
sym_keyboard_language_switch
,
R
.
string
.
setup_step3_instruction
);
step3
.
setAction
(
new
Runnable
()
{
step3
.
setAction
(
new
Runnable
()
{
@Override
@Override
...
@@ -290,11 +291,11 @@ public final class SetupActivity extends Activity {
...
@@ -290,11 +291,11 @@ public final class SetupActivity extends Activity {
private
final
TextView
mActionLabel
;
private
final
TextView
mActionLabel
;
private
Runnable
mAction
;
private
Runnable
mAction
;
public
SetupStep
(
final
View
rootView
,
final
int
titl
e
,
final
int
instruction
,
public
SetupStep
(
final
View
rootView
,
final
int
appNam
e
,
final
int
title
,
final
int
actionIcon
,
final
int
actionLabel
)
{
final
int
instruction
,
final
int
actionIcon
,
final
int
actionLabel
)
{
mRootView
=
rootView
;
mRootView
=
rootView
;
final
Resources
res
=
rootView
.
getResources
();
final
Resources
res
=
rootView
.
getResources
();
final
String
applicationName
=
res
.
getString
(
R
.
string
.
english_ime_n
ame
);
final
String
applicationName
=
res
.
getString
(
appN
ame
);
final
TextView
titleView
=
(
TextView
)
rootView
.
findViewById
(
R
.
id
.
setup_step_title
);
final
TextView
titleView
=
(
TextView
)
rootView
.
findViewById
(
R
.
id
.
setup_step_title
);
titleView
.
setText
(
res
.
getString
(
title
,
applicationName
));
titleView
.
setText
(
res
.
getString
(
title
,
applicationName
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment