Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom view #38

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

AlexanderBuyko
Copy link

Contains 2 custom charts + animation for the first one

@antonkazakov
Copy link
Collaborator

Привет. Очень красивые графики получились.
Но у тебя не работает сохранение состояния + крашится приложение при попытке сохранить маршалинга класса PieChartSegment

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: otus.homework.customview, PID: 4851
    java.lang.RuntimeException: Parcel: unable to marshal value PieChartSegment(id=1, name=Азбука Вкуса, amount=19.8912, category=Продукты, startAngle=0.0, endAngle=115.202705, percentageOfMaximum=99.99397, color=-8169226)
        at android.os.Parcel.writeValue(Parcel.java:1933)
        at android.os.Parcel.writeList(Parcel.java:1140)
        at otus.homework.customview.views.ExpenditurePieChart$SavedState.writeToParcel(ExpenditurePieChart.kt:417)
        at android.os.Parcel.writeParcelable(Parcel.java:1952)
        at android.os.Parcel.writeValue(Parcel.java:1858)
        at android.os.Parcel.writeSparseArray(Parcel.java:1180)
        at android.os.Parcel.writeValue(Parcel.java:1883)
        at android.os.Parcel.writeArrayMapInternal(Parcel.java:1023)
        at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1620)
        at android.os.Bundle.writeToParcel(Bundle.java:1304)
        at android.os.Parcel.writeBundle(Parcel.java:1092)
        at android.os.Parcel.writeValue(Parcel.java:1849)
        at android.os.BaseBundle.dumpStats(BaseBundle.java:1690)
        at android.os.BaseBundle.dumpStats(BaseBundle.java:1727)
        at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:150)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7839)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

@AlexanderBuyko
Copy link
Author

@antonkazakov Привет, исправил!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants