Use the mApplication field in lieu of K9.app

This commit is contained in:
Joe Steele 2014-03-09 18:18:26 -04:00
parent e475e51731
commit dc920b8641

View file

@ -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