Browse Source

Merge pull request #414 from alonalbert/protect-acd-from-npe

Remove setTitle() call which was causing NPE on orientation change
pull/424/head
Eric Kok 7 years ago committed by GitHub
parent
commit
4050b9fe0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/src/main/java/org/transdroid/core/gui/settings/PreferenceCompatActivity.java

6
app/src/main/java/org/transdroid/core/gui/settings/PreferenceCompatActivity.java

@ -32,12 +32,6 @@ public class PreferenceCompatActivity extends PreferenceActivity implements AppC
acd.onConfigurationChanged(newConfig); acd.onConfigurationChanged(newConfig);
} }
@Override
public void setTitle(CharSequence title) {
super.setTitle(title);
acd.setTitle(title);
}
@Override @Override
protected void onStop() { protected void onStop() {
super.onStop(); super.onStop();

Loading…
Cancel
Save