mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Use the mApplication field in lieu of K9.app
This commit is contained in:
parent
e475e51731
commit
dc920b8641
@ -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 New Issue
Block a user