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
49a603c1
Commit
49a603c1
authored
14 years ago
by
John Reck
Browse files
Options
Download
Email Patches
Plain Diff
Use OriginalUrl instead of Url for history
Bug: 3500263 Change-Id: I8a0b795dcac28e016e8511aa856aa3e9a45d6a13
parent
02f97585
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/com/android/browser/Controller.java
src/com/android/browser/Controller.java
+2
-2
src/com/android/browser/Tab.java
src/com/android/browser/Tab.java
+7
-0
No files found.
src/com/android/browser/Controller.java
View file @
49a603c1
...
@@ -858,7 +858,7 @@ public class Controller
...
@@ -858,7 +858,7 @@ public class Controller
@Override
@Override
public
void
onReceivedTitle
(
Tab
tab
,
final
String
title
)
{
public
void
onReceivedTitle
(
Tab
tab
,
final
String
title
)
{
mUi
.
onTabDataChanged
(
tab
);
mUi
.
onTabDataChanged
(
tab
);
final
String
pageUrl
=
tab
.
getUrl
();
final
String
pageUrl
=
tab
.
get
Original
Url
();
if
(
TextUtils
.
isEmpty
(
pageUrl
)
||
pageUrl
.
length
()
if
(
TextUtils
.
isEmpty
(
pageUrl
)
||
pageUrl
.
length
()
>=
SQLiteDatabase
.
SQLITE_MAX_LIKE_PATTERN_LENGTH
)
{
>=
SQLiteDatabase
.
SQLITE_MAX_LIKE_PATTERN_LENGTH
)
{
return
;
return
;
...
@@ -906,7 +906,7 @@ public class Controller
...
@@ -906,7 +906,7 @@ public class Controller
public
void
doUpdateVisitedHistory
(
Tab
tab
,
boolean
isReload
)
{
public
void
doUpdateVisitedHistory
(
Tab
tab
,
boolean
isReload
)
{
// Don't save anything in private browsing mode
// Don't save anything in private browsing mode
if
(
tab
.
isPrivateBrowsingEnabled
())
return
;
if
(
tab
.
isPrivateBrowsingEnabled
())
return
;
String
url
=
tab
.
getUrl
();
String
url
=
tab
.
get
Original
Url
();
if
(
TextUtils
.
isEmpty
(
url
)
if
(
TextUtils
.
isEmpty
(
url
)
||
url
.
regionMatches
(
true
,
0
,
"about:"
,
0
,
6
))
{
||
url
.
regionMatches
(
true
,
0
,
"about:"
,
0
,
6
))
{
...
...
This diff is collapsed.
Click to expand it.
src/com/android/browser/Tab.java
View file @
49a603c1
...
@@ -1583,6 +1583,13 @@ class Tab {
...
@@ -1583,6 +1583,13 @@ class Tab {
return
UrlUtils
.
filteredUrl
(
mCurrentState
.
mUrl
);
return
UrlUtils
.
filteredUrl
(
mCurrentState
.
mUrl
);
}
}
String
getOriginalUrl
()
{
if
(
mMainView
==
null
)
{
return
""
;
}
return
UrlUtils
.
filteredUrl
(
mMainView
.
getOriginalUrl
());
}
/**
/**
* Get the title of this tab.
* Get the title of this tab.
*/
*/
...
...
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