Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Browser
Commits
73972695
Commit
73972695
authored
15 years ago
by
Android (Google) Code Review
Browse files
Options
Download
Plain Diff
Merge change 4925 into donut
* changes: Fix 2 NPEs in the Browser.
parents
edef6cce
d068f801
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
src/com/android/browser/BrowserActivity.java
src/com/android/browser/BrowserActivity.java
+6
-4
src/com/android/browser/TabControl.java
src/com/android/browser/TabControl.java
+3
-2
No files found.
src/com/android/browser/BrowserActivity.java
View file @
73972695
...
...
@@ -2112,10 +2112,12 @@ public class BrowserActivity extends Activity
final
Animation
.
AnimationListener
l
=
new
Animation
.
AnimationListener
()
{
public
void
onAnimationStart
(
Animation
a
)
{
mTabOverview
.
requestFocus
();
// Clear the listener so we don't trigger a tab
// selection.
mTabOverview
.
setListener
(
null
);
if
(
mTabOverview
!=
null
)
{
mTabOverview
.
requestFocus
();
// Clear the listener so we don't trigger a tab
// selection.
mTabOverview
.
setListener
(
null
);
}
}
public
void
onAnimationRepeat
(
Animation
a
)
{}
public
void
onAnimationEnd
(
Animation
a
)
{
...
...
This diff is collapsed.
Click to expand it.
src/com/android/browser/TabControl.java
View file @
73972695
...
...
@@ -709,8 +709,9 @@ class TabControl {
t
=
mTabQueue
.
get
(
i
++);
}
while
(
i
<
queueSize
&&
t
!=
null
&&
t
.
mMainView
==
null
);
// Don't do anything if the last remaining tab is the current one.
if
(
t
==
getCurrentTab
())
{
// Don't do anything if the last remaining tab is the current one or if
// the last tab has been freed already.
if
(
t
==
getCurrentTab
()
||
t
.
mMainView
==
null
)
{
return
null
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment