Implement global focus highlight

This commit is contained in:
Alexander 2019-09-23 14:17:03 +07:00 committed by Alexander--
parent feea320116
commit 924fb49eb0
5 changed files with 271 additions and 0 deletions

View file

@ -13,7 +13,9 @@ import android.view.ViewTreeObserver;
import org.schabi.newpipe.R;
import org.schabi.newpipe.settings.SettingsActivity;
import org.schabi.newpipe.util.FireTvUtils;
import org.schabi.newpipe.util.ThemeHelper;
import org.schabi.newpipe.views.FocusOverlayView;
import us.shandian.giga.service.DownloadManagerService;
import us.shandian.giga.ui.fragment.MissionsFragment;
@ -50,6 +52,10 @@ public class DownloadActivity extends AppCompatActivity {
getWindow().getDecorView().getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
});
if (FireTvUtils.isFireTv()) {
FocusOverlayView.setupFocusObserver(this);
}
}
private void updateFragments() {