diff options
| author | John Reck <jreck@google.com> | 2011-07-19 16:10:23 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2011-07-19 16:10:23 -0700 |
| commit | 86374729c42dae85147d207d03903a949b27ef43 (patch) | |
| tree | 5701e2cdbe1955a06f4a9cf1fd2f403f64658a54 /src/com/android/browser | |
| parent | e57c709438aec9d64e3de7eefd87f333fcd2ae7c (diff) | |
| download | packages_apps_Browser-86374729c42dae85147d207d03903a949b27ef43.tar.gz packages_apps_Browser-86374729c42dae85147d207d03903a949b27ef43.tar.bz2 packages_apps_Browser-86374729c42dae85147d207d03903a949b27ef43.zip | |
Remove size from phone snapshot layout
Bug: 5045575
Change-Id: Ibb15cf18214d3fd2b7ddcb4b3dceebf9ba43104c
Diffstat (limited to 'src/com/android/browser')
| -rw-r--r-- | src/com/android/browser/BrowserSnapshotPage.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserSnapshotPage.java b/src/com/android/browser/BrowserSnapshotPage.java index a0ec5e980..095387968 100644 --- a/src/com/android/browser/BrowserSnapshotPage.java +++ b/src/com/android/browser/BrowserSnapshotPage.java @@ -218,8 +218,10 @@ public class BrowserSnapshotPage extends Fragment implements TextView title = (TextView) view.findViewById(R.id.title); title.setText(cursor.getString(SNAPSHOT_TITLE)); TextView size = (TextView) view.findViewById(R.id.size); - int stateLen = cursor.getInt(SNAPSHOT_VIEWSTATE_LENGTH); - size.setText(String.format("%.2fMB", stateLen / 1024f / 1024f)); + if (size != null) { + int stateLen = cursor.getInt(SNAPSHOT_VIEWSTATE_LENGTH); + size.setText(String.format("%.2fMB", stateLen / 1024f / 1024f)); + } long timestamp = cursor.getLong(SNAPSHOT_DATE_CREATED); TextView date = (TextView) view.findViewById(R.id.date); DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); |
