diff options
author | John Reck <jreck@google.com> | 2012-04-18 17:42:06 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-04-19 10:32:36 -0700 |
commit | 2b71d6dad1cbdc84da3eed140429a102971a1106 (patch) | |
tree | b00a91c23f7af77164b3cecd9939f2277aca4b02 /src/com/android/browser/BrowserSnapshotPage.java | |
parent | b2ce8741bf389cca77aad12ff5971e51e6e6c3a5 (diff) | |
download | packages_apps_Browser-2b71d6dad1cbdc84da3eed140429a102971a1106.zip packages_apps_Browser-2b71d6dad1cbdc84da3eed140429a102971a1106.tar.gz packages_apps_Browser-2b71d6dad1cbdc84da3eed140429a102971a1106.tar.bz2 |
Change where saved pages are stored
Bug: 5416822
Move saved pages out of external storage (b/5605575)
Save them as files instead of in the database, as the database
has a row size limit
Change-Id: I03b5af2459724d8cab67a9acfcc2827c7129e80f
Diffstat (limited to 'src/com/android/browser/BrowserSnapshotPage.java')
-rw-r--r-- | src/com/android/browser/BrowserSnapshotPage.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/browser/BrowserSnapshotPage.java b/src/com/android/browser/BrowserSnapshotPage.java index be4f9af..b0d8205 100644 --- a/src/com/android/browser/BrowserSnapshotPage.java +++ b/src/com/android/browser/BrowserSnapshotPage.java @@ -61,7 +61,7 @@ public class BrowserSnapshotPage extends Fragment implements private static final String[] PROJECTION = new String[] { Snapshots._ID, Snapshots.TITLE, - "length(" + Snapshots.VIEWSTATE + ")", + Snapshots.VIEWSTATE_SIZE, Snapshots.THUMBNAIL, Snapshots.FAVICON, Snapshots.URL, @@ -69,7 +69,7 @@ public class BrowserSnapshotPage extends Fragment implements }; private static final int SNAPSHOT_ID = 0; private static final int SNAPSHOT_TITLE = 1; - private static final int SNAPSHOT_VIEWSTATE_LENGTH = 2; + private static final int SNAPSHOT_VIEWSTATE_SIZE = 2; private static final int SNAPSHOT_THUMBNAIL = 3; private static final int SNAPSHOT_FAVICON = 4; private static final int SNAPSHOT_URL = 5; @@ -281,7 +281,7 @@ public class BrowserSnapshotPage extends Fragment implements title.setText(cursor.getString(SNAPSHOT_TITLE)); TextView size = (TextView) view.findViewById(R.id.size); if (size != null) { - int stateLen = cursor.getInt(SNAPSHOT_VIEWSTATE_LENGTH); + int stateLen = cursor.getInt(SNAPSHOT_VIEWSTATE_SIZE); size.setText(String.format("%.2fMB", stateLen / 1024f / 1024f)); } long timestamp = cursor.getLong(SNAPSHOT_DATE_CREATED); |