Skip to content

Commit

Permalink
crash fix in AboutApplicationActivity class
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm authored Apr 28, 2022
1 parent e911e1c commit e0c9ff0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
Button repoButton = (Button) findViewById(R.id.repo_button);
Button websiteButton = (Button) findViewById(R.id.website_button);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
getActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
getActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
repoButton.setOnClickListener(new View.OnClickListener() {
@Override
Expand Down

0 comments on commit e0c9ff0

Please sign in to comment.