material-foundation / material-remixer-android

Remixer for Android. Live adjustment of app variables.
Apache License 2.0
774 stars 54 forks source link

Cannot open Remixer from fragment. #152

Open felislynx-silae opened 7 years ago

felislynx-silae commented 7 years ago

After setting remixer up inside a fragment, it's not reacting (opening) via gesture or button This is a part of onCreateView method:

RemixerBinder.bind(this);
RemixerFragment.newInstance().attachToGesture(
                    getActivity(),
                    Direction.UP,
                    2);
RemixerFragment.newInstance().attachToButton(getActivity(),mRemixerOpenButton);
miguelandres commented 7 years ago

Currently remixer supports activities as contexts, not fragments. Is setting it up from the activity a viable workaround for you?

felislynx-silae commented 7 years ago

You know, it's working but also produces a lot of unnecesary code. It would be just much simpler to use it within fragment. But if right now it's not supported i understand. Can you tell me if it's feature that is considered to be available in future releases?