Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Unified Diff: remoting/android/java/src/org/chromium/chromoting/Desktop.java

Issue 655243004: Chromoting Android: Fix getActionBar() NullPointerException (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/java/src/org/chromium/chromoting/Desktop.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/Desktop.java b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
index 5753c8ffad44c13f5da3b061949187f05d63b5a8..0ea553ae89d60df83144cd50201e90d85b1ae3e2 100644
--- a/remoting/android/java/src/org/chromium/chromoting/Desktop.java
+++ b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
@@ -142,7 +142,7 @@ public class Desktop extends ActionBarActivity implements View.OnSystemUiVisibil
public void showActionBar() {
mOverlayButton.setVisibility(View.INVISIBLE);
- getActionBar().show();
+ getSupportActionBar().show();
View decorView = getWindow().getDecorView();
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
@@ -151,7 +151,7 @@ public class Desktop extends ActionBarActivity implements View.OnSystemUiVisibil
@SuppressLint("InlinedApi")
public void hideActionBar() {
mOverlayButton.setVisibility(View.VISIBLE);
- getActionBar().hide();
+ getSupportActionBar().hide();
View decorView = getWindow().getDecorView();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698