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
ff0bd7db
Commit
ff0bd7db
authored
11 years ago
by
Tadashi G. Takaoka
Committed by
Android Git Automerger
11 years ago
Browse files
Options
Downloads
Plain Diff
am
25f0c808
: am
96a9f357
: Merge "Fix unintentional setup step advance in orientation change"
* commit '
25f0c808
': am
96a9f357
: Merge "Fix unintentional setup step advance in orientation change"
parents
d6a7a26d
25f0c808
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/SetupWizardActivity.java
+16
-4
16 additions, 4 deletions
.../android/inputmethod/latin/setup/SetupWizardActivity.java
with
16 additions
and
4 deletions
java/src/com/android/inputmethod/latin/setup/SetupWizardActivity.java
+
16
−
4
View file @
ff0bd7db
...
...
@@ -61,6 +61,7 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
private
SetupStepGroup
mSetupStepGroup
;
private
static
final
String
STATE_STEP
=
"step"
;
private
int
mStepNumber
;
private
boolean
mNeedsToAdjustStepNumberToSystemState
;
private
static
final
int
STEP_WELCOME
=
0
;
private
static
final
int
STEP_1
=
1
;
private
static
final
int
STEP_2
=
2
;
...
...
@@ -159,9 +160,7 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
step2
.
setAction
(
new
Runnable
()
{
@Override
public
void
run
()
{
// Invoke input method picker.
RichInputMethodManager
.
getInstance
().
getInputMethodManager
()
.
showInputMethodPicker
();
invokeInputMethodPicker
();
}
});
mSetupStepGroup
.
addStep
(
step2
);
...
...
@@ -245,6 +244,7 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
|
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
|
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
startActivity
(
intent
);
mNeedsToAdjustStepNumberToSystemState
=
true
;
}
private
void
invokeSettingsOfThisIme
()
{
...
...
@@ -260,6 +260,14 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
intent
.
setAction
(
Settings
.
ACTION_INPUT_METHOD_SETTINGS
);
intent
.
addCategory
(
Intent
.
CATEGORY_DEFAULT
);
startActivity
(
intent
);
mNeedsToAdjustStepNumberToSystemState
=
true
;
}
void
invokeInputMethodPicker
()
{
// Invoke input method picker.
RichInputMethodManager
.
getInstance
().
getInputMethodManager
()
.
showInputMethodPicker
();
mNeedsToAdjustStepNumberToSystemState
=
true
;
}
void
invokeSubtypeEnablerOfThisIme
()
{
...
...
@@ -313,6 +321,9 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
@Override
protected
void
onRestart
()
{
super
.
onRestart
();
// Probably the setup wizard has been invoked from "Recent" menu. The setup step number
// needs to be adjusted to system state, because the state (IME is enabled and/or current)
// may have been changed.
if
(
isInSetupSteps
(
mStepNumber
))
{
mStepNumber
=
determineSetupStepNumber
();
}
...
...
@@ -371,7 +382,8 @@ public final class SetupWizardActivity extends Activity implements View.OnClickL
@Override
public
void
onWindowFocusChanged
(
final
boolean
hasFocus
)
{
super
.
onWindowFocusChanged
(
hasFocus
);
if
(
hasFocus
&&
isInSetupSteps
(
mStepNumber
))
{
if
(
hasFocus
&&
mNeedsToAdjustStepNumberToSystemState
)
{
mNeedsToAdjustStepNumberToSystemState
=
false
;
mStepNumber
=
determineSetupStepNumber
();
updateSetupStepView
();
}
...
...
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