OSDN Git Service
(root)
/
android-x86
/
packages-apps-Browser.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95d75e
)
if savePicture failes, delete the file (which is now unreliable, and possibly large)
author
Mike Reed
<reed@google.com>
Fri, 5 Mar 2010 15:13:34 +0000
(10:13 -0500)
committer
Mike Reed
<reed@google.com>
Fri, 5 Mar 2010 15:13:34 +0000
(10:13 -0500)
src/com/android/browser/Tab.java
patch
|
blob
|
history
diff --git
a/src/com/android/browser/Tab.java
b/src/com/android/browser/Tab.java
index
7b54e38
..
e502e5b
100644
(file)
--- a/
src/com/android/browser/Tab.java
+++ b/
src/com/android/browser/Tab.java
@@
-1802,6
+1802,10
@@
class Tab {
mMainView.hashCode() + "_pic.save");
if (mMainView.savePicture(mSavedState, f)) {
mSavedState.putString(CURRPICTURE, f.getPath());
+ } else {
+ // if savePicture returned false, we can't trust the contents,
+ // and it may be large, so we delete it right away
+ f.delete();
}
}