Shared Element transition crash on Samsung device running Android 8.0





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I've a weird crash, apparently unfixable happening on Samsung devices only running Android 8.0.



I've a recyclerView populated in a Fragment that it's launching an Activity.



Here is my ItemHolder layout



<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="@dimen/table_card_header_size"
android:transitionName="@string/team_profile_transition"
android:id="@+id/tableRowMainContainer"
android:background="@drawable/rounded_rect_top"
> ...


Here's is my Intent to the activity with the shared element



private val teamProfileOnClick = View.OnClickListener { v ->
val teamContainer = v.findViewById<FrameLayout>(R.id.tableRowMainContainer)
val tag = v.tag as TableRow
val intent = Intent(context, TeamProfileActivity::class.java)
intent.putExtra(TeamProfileActivity.TEAM_ID_PROFILE, tag.teamId)
intent.putExtra(TeamProfileActivity.TEAM_NAME, tag.team.name)
intent.putExtra(TeamProfileActivity.TEAM_COMPETITION_ID, tableCompetitionId)
intent.putExtra(TeamProfileActivity.TEAM_TYPE, tag.team.teamType)

val options = ActivityOptionsCompat.makeSceneTransitionAnimation(context as Activity,
teamContainer,
ViewCompat.getTransitionName(teamContainer))
context.startActivity(intent, options.toBundle())
}


And here is the layout of the destination activity



<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tool="http://schemas.android.com/tools"
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:transitionName="@string/team_profile_transition"
app:cardCornerRadius="10dp"
> ...


Here is the crash log



java.lang.NullPointerException: 
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:553)
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:653)
at android.app.EnterTransitionCoordinator.startSharedElementTransition (EnterTransitionCoordinator.java:428)
at android.app.EnterTransitionCoordinator.-wrap4 (Unknown Source)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18867 (EnterTransitionCoordinator.java:492)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.run (Unknown Source)
at android.app.ActivityTransitionCoordinator.startTransition (ActivityTransitionCoordinator.java:902)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18819 (EnterTransitionCoordinator.java:491)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.run (Unknown Source)
at com.android.internal.view.OneShotPreDrawListener.onPreDraw (OneShotPreDrawListener.java:78)
at android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:1045)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2800)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1779)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7810)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)









share|improve this question

























  • Did you solve this issue? I have the same

    – Daniil Popov
    Dec 25 '18 at 11:55











  • How did you end up resolving this?

    – dazza5000
    Dec 26 '18 at 14:06











  • Yes, I did. Please check my solution

    – DoM4
    Jan 2 at 12:48


















1















I've a weird crash, apparently unfixable happening on Samsung devices only running Android 8.0.



I've a recyclerView populated in a Fragment that it's launching an Activity.



Here is my ItemHolder layout



<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="@dimen/table_card_header_size"
android:transitionName="@string/team_profile_transition"
android:id="@+id/tableRowMainContainer"
android:background="@drawable/rounded_rect_top"
> ...


Here's is my Intent to the activity with the shared element



private val teamProfileOnClick = View.OnClickListener { v ->
val teamContainer = v.findViewById<FrameLayout>(R.id.tableRowMainContainer)
val tag = v.tag as TableRow
val intent = Intent(context, TeamProfileActivity::class.java)
intent.putExtra(TeamProfileActivity.TEAM_ID_PROFILE, tag.teamId)
intent.putExtra(TeamProfileActivity.TEAM_NAME, tag.team.name)
intent.putExtra(TeamProfileActivity.TEAM_COMPETITION_ID, tableCompetitionId)
intent.putExtra(TeamProfileActivity.TEAM_TYPE, tag.team.teamType)

val options = ActivityOptionsCompat.makeSceneTransitionAnimation(context as Activity,
teamContainer,
ViewCompat.getTransitionName(teamContainer))
context.startActivity(intent, options.toBundle())
}


And here is the layout of the destination activity



<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tool="http://schemas.android.com/tools"
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:transitionName="@string/team_profile_transition"
app:cardCornerRadius="10dp"
> ...


Here is the crash log



java.lang.NullPointerException: 
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:553)
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:653)
at android.app.EnterTransitionCoordinator.startSharedElementTransition (EnterTransitionCoordinator.java:428)
at android.app.EnterTransitionCoordinator.-wrap4 (Unknown Source)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18867 (EnterTransitionCoordinator.java:492)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.run (Unknown Source)
at android.app.ActivityTransitionCoordinator.startTransition (ActivityTransitionCoordinator.java:902)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18819 (EnterTransitionCoordinator.java:491)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.run (Unknown Source)
at com.android.internal.view.OneShotPreDrawListener.onPreDraw (OneShotPreDrawListener.java:78)
at android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:1045)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2800)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1779)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7810)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)









share|improve this question

























  • Did you solve this issue? I have the same

    – Daniil Popov
    Dec 25 '18 at 11:55











  • How did you end up resolving this?

    – dazza5000
    Dec 26 '18 at 14:06











  • Yes, I did. Please check my solution

    – DoM4
    Jan 2 at 12:48














1












1








1


1






I've a weird crash, apparently unfixable happening on Samsung devices only running Android 8.0.



I've a recyclerView populated in a Fragment that it's launching an Activity.



Here is my ItemHolder layout



<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="@dimen/table_card_header_size"
android:transitionName="@string/team_profile_transition"
android:id="@+id/tableRowMainContainer"
android:background="@drawable/rounded_rect_top"
> ...


Here's is my Intent to the activity with the shared element



private val teamProfileOnClick = View.OnClickListener { v ->
val teamContainer = v.findViewById<FrameLayout>(R.id.tableRowMainContainer)
val tag = v.tag as TableRow
val intent = Intent(context, TeamProfileActivity::class.java)
intent.putExtra(TeamProfileActivity.TEAM_ID_PROFILE, tag.teamId)
intent.putExtra(TeamProfileActivity.TEAM_NAME, tag.team.name)
intent.putExtra(TeamProfileActivity.TEAM_COMPETITION_ID, tableCompetitionId)
intent.putExtra(TeamProfileActivity.TEAM_TYPE, tag.team.teamType)

val options = ActivityOptionsCompat.makeSceneTransitionAnimation(context as Activity,
teamContainer,
ViewCompat.getTransitionName(teamContainer))
context.startActivity(intent, options.toBundle())
}


And here is the layout of the destination activity



<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tool="http://schemas.android.com/tools"
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:transitionName="@string/team_profile_transition"
app:cardCornerRadius="10dp"
> ...


Here is the crash log



java.lang.NullPointerException: 
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:553)
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:653)
at android.app.EnterTransitionCoordinator.startSharedElementTransition (EnterTransitionCoordinator.java:428)
at android.app.EnterTransitionCoordinator.-wrap4 (Unknown Source)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18867 (EnterTransitionCoordinator.java:492)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.run (Unknown Source)
at android.app.ActivityTransitionCoordinator.startTransition (ActivityTransitionCoordinator.java:902)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18819 (EnterTransitionCoordinator.java:491)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.run (Unknown Source)
at com.android.internal.view.OneShotPreDrawListener.onPreDraw (OneShotPreDrawListener.java:78)
at android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:1045)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2800)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1779)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7810)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)









share|improve this question
















I've a weird crash, apparently unfixable happening on Samsung devices only running Android 8.0.



I've a recyclerView populated in a Fragment that it's launching an Activity.



Here is my ItemHolder layout



<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="@dimen/table_card_header_size"
android:transitionName="@string/team_profile_transition"
android:id="@+id/tableRowMainContainer"
android:background="@drawable/rounded_rect_top"
> ...


Here's is my Intent to the activity with the shared element



private val teamProfileOnClick = View.OnClickListener { v ->
val teamContainer = v.findViewById<FrameLayout>(R.id.tableRowMainContainer)
val tag = v.tag as TableRow
val intent = Intent(context, TeamProfileActivity::class.java)
intent.putExtra(TeamProfileActivity.TEAM_ID_PROFILE, tag.teamId)
intent.putExtra(TeamProfileActivity.TEAM_NAME, tag.team.name)
intent.putExtra(TeamProfileActivity.TEAM_COMPETITION_ID, tableCompetitionId)
intent.putExtra(TeamProfileActivity.TEAM_TYPE, tag.team.teamType)

val options = ActivityOptionsCompat.makeSceneTransitionAnimation(context as Activity,
teamContainer,
ViewCompat.getTransitionName(teamContainer))
context.startActivity(intent, options.toBundle())
}


And here is the layout of the destination activity



<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tool="http://schemas.android.com/tools"
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:transitionName="@string/team_profile_transition"
app:cardCornerRadius="10dp"
> ...


Here is the crash log



java.lang.NullPointerException: 
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:553)
at android.app.ActivityTransitionCoordinator.setSharedElementState (ActivityTransitionCoordinator.java:653)
at android.app.EnterTransitionCoordinator.startSharedElementTransition (EnterTransitionCoordinator.java:428)
at android.app.EnterTransitionCoordinator.-wrap4 (Unknown Source)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18867 (EnterTransitionCoordinator.java:492)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$1.run (Unknown Source)
at android.app.ActivityTransitionCoordinator.startTransition (ActivityTransitionCoordinator.java:902)
at android.app.EnterTransitionCoordinator$3.lambda$-android_app_EnterTransitionCoordinator$3_18819 (EnterTransitionCoordinator.java:491)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.$m$0 (Unknown Source:8)
at android.app.-$Lambda$CsyQO--8YdRe5wlajUCi-L98enA$2.run (Unknown Source)
at com.android.internal.view.OneShotPreDrawListener.onPreDraw (OneShotPreDrawListener.java:78)
at android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:1045)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2800)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1779)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7810)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)






android kotlin samsung-mobile android-transitions shared-element-transition






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 '18 at 11:31







DoM4

















asked Nov 23 '18 at 17:06









DoM4DoM4

416




416













  • Did you solve this issue? I have the same

    – Daniil Popov
    Dec 25 '18 at 11:55











  • How did you end up resolving this?

    – dazza5000
    Dec 26 '18 at 14:06











  • Yes, I did. Please check my solution

    – DoM4
    Jan 2 at 12:48



















  • Did you solve this issue? I have the same

    – Daniil Popov
    Dec 25 '18 at 11:55











  • How did you end up resolving this?

    – dazza5000
    Dec 26 '18 at 14:06











  • Yes, I did. Please check my solution

    – DoM4
    Jan 2 at 12:48

















Did you solve this issue? I have the same

– Daniil Popov
Dec 25 '18 at 11:55





Did you solve this issue? I have the same

– Daniil Popov
Dec 25 '18 at 11:55













How did you end up resolving this?

– dazza5000
Dec 26 '18 at 14:06





How did you end up resolving this?

– dazza5000
Dec 26 '18 at 14:06













Yes, I did. Please check my solution

– DoM4
Jan 2 at 12:48





Yes, I did. Please check my solution

– DoM4
Jan 2 at 12:48












1 Answer
1






active

oldest

votes


















0














The solution I found is the following :
Freeze/unfreeze the recyclerView when opening the shared element :



 override fun onPause() {
super.onPause()
tableCardStack.isLayoutFrozen = true
}

override fun onResume() {
super.onResume()
tableCardStack.isLayoutFrozen = false
}


What I've noticed was that the view I was animating was not animating back to the right position. So I thought to freeze the layout. I know it's not the best solution but I couldn't find anything better






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53450609%2fshared-element-transition-crash-on-samsung-device-running-android-8-0%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The solution I found is the following :
    Freeze/unfreeze the recyclerView when opening the shared element :



     override fun onPause() {
    super.onPause()
    tableCardStack.isLayoutFrozen = true
    }

    override fun onResume() {
    super.onResume()
    tableCardStack.isLayoutFrozen = false
    }


    What I've noticed was that the view I was animating was not animating back to the right position. So I thought to freeze the layout. I know it's not the best solution but I couldn't find anything better






    share|improve this answer




























      0














      The solution I found is the following :
      Freeze/unfreeze the recyclerView when opening the shared element :



       override fun onPause() {
      super.onPause()
      tableCardStack.isLayoutFrozen = true
      }

      override fun onResume() {
      super.onResume()
      tableCardStack.isLayoutFrozen = false
      }


      What I've noticed was that the view I was animating was not animating back to the right position. So I thought to freeze the layout. I know it's not the best solution but I couldn't find anything better






      share|improve this answer


























        0












        0








        0







        The solution I found is the following :
        Freeze/unfreeze the recyclerView when opening the shared element :



         override fun onPause() {
        super.onPause()
        tableCardStack.isLayoutFrozen = true
        }

        override fun onResume() {
        super.onResume()
        tableCardStack.isLayoutFrozen = false
        }


        What I've noticed was that the view I was animating was not animating back to the right position. So I thought to freeze the layout. I know it's not the best solution but I couldn't find anything better






        share|improve this answer













        The solution I found is the following :
        Freeze/unfreeze the recyclerView when opening the shared element :



         override fun onPause() {
        super.onPause()
        tableCardStack.isLayoutFrozen = true
        }

        override fun onResume() {
        super.onResume()
        tableCardStack.isLayoutFrozen = false
        }


        What I've noticed was that the view I was animating was not animating back to the right position. So I thought to freeze the layout. I know it's not the best solution but I couldn't find anything better







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 12:48









        DoM4DoM4

        416




        416
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53450609%2fshared-element-transition-crash-on-samsung-device-running-android-8-0%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            RAC Tourist Trophy