Use the mApplication field in lieu of K9.app
This commit is contained in:
parent
e475e51731
commit
dc920b8641
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue