From aaba503cd0384a2c5a86773ea4bc6ef2d0bfad7e Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Tue, 8 Nov 2016 22:57:56 +0100 Subject: [PATCH] Fix crash due to not found theme --- app/src/main/java/info/nightscout/androidaps/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/MainActivity.java b/app/src/main/java/info/nightscout/androidaps/MainActivity.java index ced7f2311e..aead928e52 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/MainActivity.java @@ -112,7 +112,7 @@ public class MainActivity extends AppCompatActivity { startActivity(i); break; case R.id.nav_resetdb: - new AlertDialog.Builder(getApplicationContext()) + new AlertDialog.Builder(this) .setTitle(R.string.nav_resetdb) .setMessage(R.string.reset_db_confirm) .setNegativeButton(android.R.string.cancel, null)