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
331d256f
Commit
331d256f
authored
11 years ago
by
Tadashi G. Takaoka
Committed by
Satoshi Kataoka
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix an issue on the transition between the setup and the settings
Bug: 8853220 Change-Id: I99b6c46d900e9391f77986d1ae6e3edeaeff01e5
parent
244a24e3
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
+9
-8
9 additions, 8 deletions
...rc/com/android/inputmethod/latin/setup/SetupActivity.java
with
9 additions
and
8 deletions
java/src/com/android/inputmethod/latin/setup/SetupActivity.java
+
9
−
8
View file @
331d256f
...
...
@@ -190,18 +190,13 @@ public final class SetupActivity extends Activity implements View.OnClickListene
.
path
(
Integer
.
toString
(
R
.
raw
.
setup_welcome_video
))
.
build
();
mWelcomeVideoView
=
(
VideoView
)
findViewById
(
R
.
id
.
setup_welcome_video
);
mWelcomeVideoView
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
final
MediaPlayer
mp
)
{
mp
.
start
();
}
});
mWelcomeVideoView
.
setOnPreparedListener
(
new
MediaPlayer
.
OnPreparedListener
()
{
@Override
public
void
onPrepared
(
final
MediaPlayer
mp
)
{
// Now VideoView has been laid-out and ready to play, remove background of it to
// reveal the video.
mWelcomeVideoView
.
setBackgroundResource
(
0
);
mp
.
setLooping
(
true
);
}
});
final
ImageView
welcomeImageView
=
(
ImageView
)
findViewById
(
R
.
id
.
setup_welcome_image
);
...
...
@@ -365,9 +360,14 @@ public final class SetupActivity extends Activity implements View.OnClickListene
super
.
onBackPressed
();
}
private
static
void
hideAndStopVideo
(
final
VideoView
videoView
)
{
videoView
.
stopPlayback
();
videoView
.
setVisibility
(
View
.
INVISIBLE
);
}
@Override
protected
void
onPause
()
{
mWelcomeVideoView
.
stopPlayback
(
);
hideAndStopVideo
(
mWelcomeVideoView
);
super
.
onPause
();
}
...
...
@@ -385,11 +385,12 @@ public final class SetupActivity extends Activity implements View.OnClickListene
mWelcomeScreen
.
setVisibility
(
welcomeScreen
?
View
.
VISIBLE
:
View
.
GONE
);
mSetupScreen
.
setVisibility
(
welcomeScreen
?
View
.
GONE
:
View
.
VISIBLE
);
if
(
welcomeScreen
)
{
mWelcomeVideoView
.
setVisibility
(
View
.
VISIBLE
);
mWelcomeVideoView
.
setVideoURI
(
mWelcomeVideoUri
);
mWelcomeVideoView
.
start
();
return
;
}
mWelcomeVideoView
.
stopPlayback
(
);
hideAndStopVideo
(
mWelcomeVideoView
);
final
boolean
isStepActionAlreadyDone
=
mStepNumber
<
determineSetupStepNumber
();
mSetupStepGroup
.
enableStep
(
mStepNumber
,
isStepActionAlreadyDone
);
mActionNext
.
setVisibility
(
isStepActionAlreadyDone
?
View
.
VISIBLE
:
View
.
GONE
);
...
...
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