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
6f09e99d
Commit
6f09e99d
authored
10 years ago
by
Dan Zivkovic
Committed by
Android Git Automerger
10 years ago
Browse files
Options
Downloads
Plain Diff
am
2bc9f407
: Block overflow menu during setup. DO NOT MERGE
* commit '
2bc9f407
': Block overflow menu during setup. DO NOT MERGE
parents
c84e354c
2bc9f407
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/settings/SettingsFragment.java
+14
-2
14 additions, 2 deletions
.../android/inputmethod/latin/settings/SettingsFragment.java
with
14 additions
and
2 deletions
java/src/com/android/inputmethod/latin/settings/SettingsFragment.java
+
14
−
2
View file @
6f09e99d
...
...
@@ -16,10 +16,12 @@
package
com.android.inputmethod.latin.settings
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.preference.Preference
;
import
android.preference.PreferenceScreen
;
import
android.provider.Settings.Secure
;
import
android.view.Menu
;
import
android.view.MenuInflater
;
import
android.view.MenuItem
;
...
...
@@ -67,13 +69,23 @@ public final class SettingsFragment extends InputMethodSettingsFragment {
@Override
public
boolean
onOptionsItemSelected
(
final
MenuItem
item
)
{
final
Activity
activity
=
getActivity
();
final
int
setupStatus
=
Secure
.
getInt
(
activity
.
getContentResolver
(),
"user_setup_complete"
,
0
/* default */
);
if
(
setupStatus
==
0
)
{
// If setup is not complete, it's not safe to launch Help or other activities
// because they might go to the Play Store. See b/19866981.
return
true
;
}
final
int
itemId
=
item
.
getItemId
();
if
(
itemId
==
MENU_HELP_AND_FEEDBACK
)
{
FeedbackUtils
.
showHelpAndFeedbackForm
(
getA
ctivity
()
);
FeedbackUtils
.
showHelpAndFeedbackForm
(
a
ctivity
);
return
true
;
}
if
(
itemId
==
MENU_ABOUT
)
{
final
Intent
aboutIntent
=
FeedbackUtils
.
getAboutKeyboardIntent
(
getA
ctivity
()
);
final
Intent
aboutIntent
=
FeedbackUtils
.
getAboutKeyboardIntent
(
a
ctivity
);
if
(
aboutIntent
!=
null
)
{
startActivity
(
aboutIntent
);
return
true
;
...
...
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