-
Notifications
You must be signed in to change notification settings - Fork 26
Implement MotionRuntime.interactions() API #75
Implement MotionRuntime.interactions() API #75
Conversation
New |
Codecov Report
@@ Coverage Diff @@
## develop #75 +/- ##
==========================================
Coverage ? 25.46%
==========================================
Files ? 70
Lines ? 962
Branches ? 65
==========================================
Hits ? 245
Misses ? 714
Partials ? 3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
@@ -31,6 +32,7 @@ | |||
|
|||
private final List<Subscription> subscriptions = new ArrayList<>(); | |||
private final SimpleArrayMap<View, ReactiveView> cachedReactiveViews = new SimpleArrayMap<>(); | |||
private final SimpleArrayMap<Object, ArrayList<Interaction>> cachedInteractions = new SimpleArrayMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use List<Interaction
for all definitions instead of ArrayList<Interaction>
@@ -62,6 +64,13 @@ public void next(T value) { | |||
public final <O, T> void addInteraction( | |||
Interaction<O, T> interaction, O target, ConstraintApplicator<T> constraints) { | |||
interaction.apply(this, target, constraints); | |||
ArrayList<Interaction> interactions = cachedInteractions.get(target); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List
sample/build.gradle
Outdated
@@ -39,4 +39,7 @@ dependencies { | |||
compile "com.android.support:appcompat-v7:$supportLibVersion" | |||
compile "com.android.support:recyclerview-v7:$supportLibVersion" | |||
compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.5' | |||
testCompile 'com.google.truth:truth:0.28' | |||
testCompile 'junit:junit:4.12' | |||
testCompile 'org.robolectric:robolectric:3.1.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove these too?
Summary: Fetches interactions associated with a given target. Fixes #74 Tags: #material_motion
Summary: Fetches interactions asociated with a givent target.
Fixes #74
Tags: #material_motion