Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Chromoting Android: Fix getActionBar() NullPointerException
Browse files Browse the repository at this point in the history
s/getActionBar/getSupportActionBar in Desktop.java which uses
ActionBarActivity from the support library.

BUG=423875

Review URL: https://codereview.chromium.org/655243004

Cr-Commit-Position: refs/heads/master@{#299827}
  • Loading branch information
lambroslambrou authored and Commit bot committed Oct 16, 2014
1 parent 17abbb9 commit 5b154b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private int getSystemUiFlags() {

public void showActionBar() {
mOverlayButton.setVisibility(View.INVISIBLE);
getActionBar().show();
getSupportActionBar().show();

View decorView = getWindow().getDecorView();
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
Expand All @@ -149,7 +149,7 @@ public void showActionBar() {
@SuppressLint("InlinedApi")
public void hideActionBar() {
mOverlayButton.setVisibility(View.VISIBLE);
getActionBar().hide();
getSupportActionBar().hide();

View decorView = getWindow().getDecorView();

Expand Down

0 comments on commit 5b154b8

Please sign in to comment.