Update error activity create to use application context

(cherry picked from commit 308a7e5f672bfd39316694f5eccd942a9c398596)
This commit is contained in:
mhutti1 2018-05-20 15:49:54 +01:00 committed by Abdul Wadood
parent 91116d3f2e
commit 33e62fda72

View File

@ -34,7 +34,7 @@ public class SplashActivity extends BaseActivity {
super.onCreate(savedInstanceState);
if (!BuildConfig.DEBUG) {
Context appContext = this;
Context appContext = getApplicationContext();
Thread.setDefaultUncaughtExceptionHandler((paramThread, paramThrowable) -> {
final Intent intent = new Intent(appContext, ErrorActivity.class);