Dbrant has uploaded a new change for review. https://gerrit.wikimedia.org/r/140107
Change subject: Fix crash when saving page after restoring activity from parcel. ...................................................................... Fix crash when saving page after restoring activity from parcel. Bug: 66716 Change-Id: I0914136a709612325a7746e462f90b87d3f1de5f --- M wikipedia/src/main/java/org/wikipedia/page/PageProperties.java 1 file changed, 1 insertion(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia refs/changes/07/140107/1 diff --git a/wikipedia/src/main/java/org/wikipedia/page/PageProperties.java b/wikipedia/src/main/java/org/wikipedia/page/PageProperties.java index 9c1c932..02b2a92 100644 --- a/wikipedia/src/main/java/org/wikipedia/page/PageProperties.java +++ b/wikipedia/src/main/java/org/wikipedia/page/PageProperties.java @@ -21,7 +21,7 @@ private final String displayTitleText; private final String editProtectionStatus; private final boolean isMainPage; - private SimpleDateFormat sdf; + private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); /** * True if the user who first requested this page can edit this page @@ -38,7 +38,6 @@ */ public PageProperties(String lastModifiedText, String displayTitleText, String editProtectionStatus, boolean canEdit, boolean isMainPage) { lastModified = new Date(); - sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); try { lastModified.setTime(sdf.parse(lastModifiedText).getTime()); -- To view, visit https://gerrit.wikimedia.org/r/140107 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0914136a709612325a7746e462f90b87d3f1de5f Gerrit-PatchSet: 1 Gerrit-Project: apps/android/wikipedia Gerrit-Branch: master Gerrit-Owner: Dbrant <dbr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits