From dc920b8641c2cf88cf67c0b6789a02ad5cafacef Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Sun, 9 Mar 2014 18:18:26 -0400 Subject: [PATCH] Use the mApplication field in lieu of K9.app --- src/com/fsck/k9/controller/MessagingController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index 0be607b48..bcd78362a 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -2692,9 +2692,8 @@ public class MessagingController implements Runnable { CharArrayWriter baos = new CharArrayWriter(t.getStackTrace().length * 10); PrintWriter ps = new PrintWriter(baos); try { - Application context = K9.app; - PackageInfo packageInfo = context.getPackageManager().getPackageInfo( - context.getPackageName(), 0); + PackageInfo packageInfo = mApplication.getPackageManager().getPackageInfo( + mApplication.getPackageName(), 0); ps.format("K9-Mail version: %s\r\n", packageInfo.versionName); } catch (Exception e) { // ignore