Implement global focus highlight
This commit is contained in:
parent
eb6d26b6a4
commit
d23227d427
5 changed files with 271 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ import org.schabi.newpipe.util.PermissionHelper;
|
|||
import org.schabi.newpipe.util.ServiceHelper;
|
||||
import org.schabi.newpipe.util.StateSaver;
|
||||
import org.schabi.newpipe.util.ThemeHelper;
|
||||
import org.schabi.newpipe.views.FocusOverlayView;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
private static final String TAG = "MainActivity";
|
||||
|
|
@ -121,6 +122,10 @@ public class MainActivity extends AppCompatActivity {
|
|||
} catch (Exception e) {
|
||||
ErrorActivity.reportUiError(this, e);
|
||||
}
|
||||
|
||||
if (FireTvUtils.isFireTv()) {
|
||||
FocusOverlayView.setupFocusObserver(this);
|
||||
}
|
||||
}
|
||||
|
||||
private void setupDrawer() throws Exception {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue