Implement global focus highlight
This commit is contained in:
parent
feea320116
commit
924fb49eb0
5 changed files with 271 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue