Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix for the Pico headset buttons (#2929)
Browse files Browse the repository at this point in the history
* Fix for the Pico headset buttons

* Reenable the back button in Pico

* Revert "Reenable the back button in Pico"

This reverts commit eb1d06e.
  • Loading branch information
keianhzo authored Mar 9, 2020
1 parent 61931dc commit 8d47bf1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.KeyEvent;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;

import org.mozilla.vrbrowser.VRBrowserActivity;
import org.mozilla.vrbrowser.utils.SystemUtils;

public class OffscreenDisplay {
Expand Down Expand Up @@ -132,5 +134,10 @@ public void onCreate(Bundle savedInstanceState) {
} catch (Exception e) {
}
}

@Override
public boolean dispatchKeyEvent(KeyEvent event) {
return ((VRBrowserActivity)mContext).dispatchKeyEvent(event);
}
}
}

0 comments on commit 8d47bf1

Please sign in to comment.