Comments (3)
instead of passing the object directly into your plugin you could pass a method returning the object.
class LockPlugin(val preferenceHandlerProvider: ()-> PreferenceHandler) : ActivityPlugin { ... }
init {
addActivityPlugins(LockPlugin( { preferenceHandler } ))
}
from compositeandroid.
Ah that's a great idea!
Thanks for the quick reponse.
I will try it tomorrow though since it's 4 a clock in the morning around here... :D
from compositeandroid.
It works!
Although it's kind of a workaround it's not that bad so I can live with it.
Thx for the quick help :)
from compositeandroid.
Related Issues (17)
- Implementation seems very heavy HOT 13
- Mosby HOT 2
- Memory usage HOT 4
- Add Lint warning for later API methods
- Support library version 25.0.0 HOT 1
- Publish a version for 25.1.0 HOT 1
- Incompatibility with EventBus on Android 6: NoClassDefFoundError HOT 1
- getFragment() is null HOT 2
- Mosby usage: missing `onRetainCustomNonConfigurationInstance` method in ActivityPlugin HOT 1
- upgrade to support lib 26.0.1
- upgrade to support lib 27.0.0 HOT 1
- Can you please release a 27.0.2 version? HOT 3
- onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager HOT 1
- Update to Oreo ApiLevel 26 ambiguous findViewById(int) HOT 4
- AndroidX support ?
- Migration from CompositeAndroid to official Android support for composition - question HOT 2
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 compositeandroid.