mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +02:00
Merge pull request #13309 from Cristo86/android_crashes_domains
Android - Double Click crash and dev-mobile crash with Pixel XL
This commit is contained in:
commit
c7f05d96b4
2 changed files with 11 additions and 3 deletions
|
@ -64,7 +64,11 @@ public class HomeFragment extends Fragment {
|
||||||
mDomainsView.setLayoutManager(gridLayoutMgr);
|
mDomainsView.setLayoutManager(gridLayoutMgr);
|
||||||
mDomainAdapter = new DomainAdapter(getContext(), HifiUtils.getInstance().protocolVersionSignature(), nativeGetLastLocation());
|
mDomainAdapter = new DomainAdapter(getContext(), HifiUtils.getInstance().protocolVersionSignature(), nativeGetLastLocation());
|
||||||
mDomainAdapter.setClickListener((view, position, domain) -> {
|
mDomainAdapter.setClickListener((view, position, domain) -> {
|
||||||
new Handler(getActivity().getMainLooper()).postDelayed(() -> mListener.onSelectedDomain(domain.url), 400); // a delay so the ripple effect can be seen
|
new Handler(getActivity().getMainLooper()).postDelayed(() -> {
|
||||||
|
if (mListener != null) {
|
||||||
|
mListener.onSelectedDomain(domain.url);
|
||||||
|
}
|
||||||
|
}, 400); // a delay so the ripple effect can be seen
|
||||||
});
|
});
|
||||||
mDomainAdapter.setListener(new DomainAdapter.AdapterListener() {
|
mDomainAdapter.setListener(new DomainAdapter.AdapterListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -116,7 +120,9 @@ public class HomeFragment extends Fragment {
|
||||||
if (!urlString.trim().isEmpty()) {
|
if (!urlString.trim().isEmpty()) {
|
||||||
urlString = HifiUtils.getInstance().sanitizeHifiUrl(urlString);
|
urlString = HifiUtils.getInstance().sanitizeHifiUrl(urlString);
|
||||||
}
|
}
|
||||||
|
if (mListener != null) {
|
||||||
mListener.onSelectedDomain(urlString);
|
mListener.onSelectedDomain(urlString);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -19,7 +19,9 @@ void RenderViewTask::build(JobModel& task, const render::Varying& input, render:
|
||||||
|
|
||||||
// Warning : the cull functor passed to the shadow pass should only be testing for LOD culling. If frustum culling
|
// Warning : the cull functor passed to the shadow pass should only be testing for LOD culling. If frustum culling
|
||||||
// is performed, then casters not in the view frustum will be removed, which is not what we wish.
|
// is performed, then casters not in the view frustum will be removed, which is not what we wish.
|
||||||
|
if (isDeferred) {
|
||||||
task.addJob<RenderShadowTask>("RenderShadowTask", cullFunctor, tagBits, tagMask);
|
task.addJob<RenderShadowTask>("RenderShadowTask", cullFunctor, tagBits, tagMask);
|
||||||
|
}
|
||||||
|
|
||||||
const auto items = task.addJob<RenderFetchCullSortTask>("FetchCullSort", cullFunctor, tagBits, tagMask);
|
const auto items = task.addJob<RenderFetchCullSortTask>("FetchCullSort", cullFunctor, tagBits, tagMask);
|
||||||
assert(items.canCast<RenderFetchCullSortTask::Output>());
|
assert(items.canCast<RenderFetchCullSortTask::Output>());
|
||||||
|
|
Loading…
Reference in a new issue