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
e8ed5d88
Commit
e8ed5d88
authored
11 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Delete obsolete dictionaries
Bug: 7980985 Change-Id: I4c9165e6102cb12fa1249074297e94013439ea3b
parent
9a98ef69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/dictionarypack/ActionBatch.java
+6
-5
6 additions, 5 deletions
...c/com/android/inputmethod/dictionarypack/ActionBatch.java
with
6 additions
and
5 deletions
java/src/com/android/inputmethod/dictionarypack/ActionBatch.java
+
6
−
5
View file @
e8ed5d88
...
...
@@ -483,13 +483,14 @@ public final class ActionBatch {
if
(
MetadataDbHelper
.
STATUS_INSTALLED
==
status
||
MetadataDbHelper
.
STATUS_DISABLED
==
status
||
MetadataDbHelper
.
STATUS_DELETING
==
status
)
{
// If it is installed or disabled, then we cannot remove the entry lest the user
// lose the ability to delete the file or otherwise administrate it. We will thus
// leave it as is, but remove the URI from the database since it is not supposed to
// be accessible any more.
// If it is installed or disabled, we need to mark it as deleted so that LatinIME
// will remove it next time it enquires for dictionaries.
// If it is deleting and we don't have a new version, then we have to wait until
// Android Keyboard actually has deleted it before we can remove its metadata.
// LatinIME actually has deleted it before we can remove its metadata.
// In both cases, remove the URI from the database since it is not supposed to
// be accessible any more.
values
.
put
(
MetadataDbHelper
.
REMOTE_FILENAME_COLUMN
,
""
);
values
.
put
(
MetadataDbHelper
.
STATUS_COLUMN
,
MetadataDbHelper
.
STATUS_DELETING
);
db
.
update
(
MetadataDbHelper
.
METADATA_TABLE_NAME
,
values
,
MetadataDbHelper
.
WORDLISTID_COLUMN
+
" = ? AND "
+
MetadataDbHelper
.
VERSION_COLUMN
+
" = ?"
,
...
...
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