Comments (2)
savedInstanceState
is a Bundle
which has getParcelableArrayList
method and this is preferred way to pass list of elements as an argument. It is even tested. Can you give some more specific example?
from activitystarter.
I've downloaded your sample, tested it and it's not @parcelize annotation problem. To see what I mean just add in StudentParcelableActivity.kt the following line.
@get:Arg var students: ArrayList<StudentParcelable> by argExtra()
Your library work correctly in Kotlin for:
@get:Arg val students: ArrayList<StudentParcelable> by argExtra()
but it's not working for:
@get:Arg var students: ArrayList<StudentParcelable> by argExtra()
It's the problem of var in case of ArrayList with elements that extends Parcelable.
from activitystarter.
Related Issues (18)
- @Arg arguments HOT 3
- Replace @ActivityStarterConfig(converters = { ParcelarArgConverter.class }) to @Arg(bundler = ParcelarArgConverter.class) HOT 1
- How to parse list of enum? HOT 3
- Add Kotlin support HOT 1
- Crash on SupportFragment.onSaveInstanceState in Kotlin HOT 1
- MultiDex error
- Activity State not getting restored when the activity is killed and restored HOT 12
- Can't fetch data at HOT 2
- Migration to androidx HOT 2
- Implement method .startActivityForResult HOT 5
- Incremental processor
- w: Runtime JAR files in the classpath should have the same version. HOT 5
- Still have NoSuchElementException in 1.12-beta2
- Crash when using Proguard
- Implement support for Parcels lib HOT 15
- Create private String KEY HOT 4
- Create any IntentBuilder to avoid generation of methods HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activitystarter.