Use instanceOf instead of getClass

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2018-07-08 23:59:25 +02:00
parent c696e9f275
commit d50e0f5fb9
3 changed files with 3 additions and 3 deletions
@@ -54,7 +54,7 @@ public abstract class BaseActivity extends ThemeChangeAwareActivity {
super.onCreate(savedInstanceState);
Application.onHaveBackend(backend -> {
if (backend.getClass() == GoBackend.class) {
if (backend instanceof GoBackend) {
final Intent intent = GoBackend.VpnService.prepare(this);
if (intent != null)
startActivityForResult(intent, 0);