Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public final void onInsightClicked(@NonNull final InsightsAdapter.InsightViewHol
return;
}
final InsightInfoFragment infoFragment = InsightInfoFragment.newInstance(insight, getResources());
infoFragment.show(fragment.getChildFragmentManager(),
infoFragment.show(fragment.getFragmentManager(),
R.id.view_home_container,
InsightInfoFragment.TAG);
this.selectedInsightHolder = viewHolder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ public class InsightInfoFragment extends AnimatedInjectionFragment

@UsedInTransition
private View rootView;
@UsedInTransition

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does removing the fill view do? Does it affect the enter / exit animation for insight info?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removes an unused variable.

private View fillView;

@UsedInTransition
private ExtendedScrollView scrollView;
Expand Down Expand Up @@ -136,7 +134,6 @@ public static InsightInfoFragment newInstance(@NonNull final Insight insight,
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

final Bundle arguments = getArguments();
final String category = arguments.getString(ARG_CATEGORY);
if (category != null) {
Expand All @@ -163,7 +160,6 @@ public void onCreate(final Bundle savedInstanceState) {
@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
this.rootView = inflater.inflate(R.layout.fragment_insight_info, container, false);
this.fillView = rootView.findViewById(R.id.fragment_insight_info_fill);
this.progress = (ProgressBar) rootView.findViewById(R.id.fragment_insight_info_progress);
this.illustrationImage =
(ParallaxImageView) rootView.findViewById(R.id.fragment_insight_info_illustration);
Expand Down Expand Up @@ -313,7 +309,6 @@ protected void onEnterAnimatorEnd() {
@Override
protected void onExitAnimatorEnd() {
this.rootView = null;
this.fillView = null;
this.scrollView = null;
this.topShadow = null;
this.bottomShadow = null;
Expand Down Expand Up @@ -556,7 +551,6 @@ public void onBitmapFailed() {
}

//endregion

private void shareInsightSuccess(@NonNull final ShareUrl shareUrl) {
final Share.Text text = Share.text(shareUrl.getUrlForSharing(getActivity()));
if (category != null) {
Expand Down