Fix crash due to not found theme

This commit is contained in:
AdrianLxM 2016-11-08 22:57:56 +01:00 committed by GitHub
parent 341d7222e5
commit aaba503cd0

View file

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