Skip to content

Commit

Permalink
Merge pull request #1 from airbnb/master
Browse files Browse the repository at this point in the history
Merge airbnb:master
  • Loading branch information
Ethan1983 authored Nov 12, 2019
2 parents ccc38fd + d98658a commit 49b7a07
Show file tree
Hide file tree
Showing 140 changed files with 12 additions and 9 deletions.
Empty file modified .gitignore
100755 → 100644
Empty file.
Empty file modified README.md
100755 → 100644
Empty file.
Empty file modified build.gradle
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/.gitignore
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/build.gradle
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/gradle.properties
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/lint.xml
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/proguard-rules.pro
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/src/main/AndroidManifest.xml
100755 → 100644
Empty file.
Empty file.
Empty file modified epoxy-adapter/src/main/java/com/airbnb/epoxy/DiffHelper.java
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyAdapter.java
100755 → 100644
Empty file.
7 changes: 5 additions & 2 deletions epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyModel.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

/**
* Helper to bind data to a view using a builder style. The parameterized type should extend
* Android's View.
* Android's View or EpoxyHolder.
*
* @see EpoxyModelWithHolder
* @see EpoxyModelWithView
*/
public abstract class EpoxyModel<T> {

Expand Down Expand Up @@ -53,7 +56,7 @@ public abstract class EpoxyModel<T> {
/**
* Models are staged when they are changed. This allows them to be automatically added when they
* are done being changed (eg the next model is changed/added or buildModels finishes). It is only
* allowed for AutoModels, and only if implicity adding is enabled.
* allowed for AutoModels, and only if implicit adding is enabled.
*/
EpoxyController controllerToStageTo;
private boolean currentlyInInterceptors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ public void unbind(@NonNull T holder) {


@Override
public void onVisibilityStateChanged(@Visibility int visibilityState, @NonNull T view) {
super.onVisibilityStateChanged(visibilityState, view);
public void onVisibilityStateChanged(@Visibility int visibilityState, @NonNull T holder) {
super.onVisibilityStateChanged(visibilityState, holder);
}

@Override
public void onVisibilityChanged(
@FloatRange(from = 0, to = 100) float percentVisibleHeight,
@FloatRange(from = 0, to = 100) float percentVisibleWidth,
@Px int visibleHeight, @Px int visibleWidth,
@NonNull T view) {
@NonNull T holder) {
super.onVisibilityChanged(
percentVisibleHeight, percentVisibleWidth,
visibleHeight, visibleWidth,
view);
holder);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyViewHolder.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public EpoxyViewHolder(View view, boolean saveInitialState) {
if (saveInitialState) {
// We save the initial state of the view when it is created so that we can reset this initial
// state before a model is bound for the first time. Otherwise the view may carry over
// state from a previously bound view.
// state from a previously bound model.
initialViewState = new ViewState();
initialViewState.save(itemView);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface GeneratedModel<T> {
* listener.
* <p>
* We don't want to rely on the main onBind method to dispatch the onBind listener call because
* there on two onBind methods (one for payloads and one for no payloads), and one can call into
* there are two onBind methods (one for payloads and one for no payloads), and one can call into
* the other. We don't want to dispatch two onBind listener calls in that case.
*/
void handlePostBind(T objectToBind, int position);
Expand Down
Empty file.
Empty file modified epoxy-adapter/src/main/java/com/airbnb/epoxy/ModelState.java
100755 → 100644
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public interface OnModelCheckedChangeListener<T extends EpoxyModel<?>, V> {
*
* @param model The model that the view is bound to.
* @param parentView The view bound to the model which received the click.
* @param clickedView The view that received the click. This is either a child of the parentView
* @param checkedView The view that received the click. This is either a child of the parentView
* or the parentView itself
* @param isChecked The new value for isChecked property.
* @param position The position of the model in the adapter.
Expand Down
Empty file.
Empty file modified epoxy-adapter/src/main/java/com/airbnb/epoxy/UpdateOp.java
100755 → 100644
Empty file.
Empty file.
Empty file modified epoxy-adapter/src/main/res/layout/view_holder_empty_view.xml
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/src/main/res/values/attrs.xml
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/src/main/res/values/ids.xml
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-adapter/src/test/java/com/airbnb/epoxy/InsertedModel.java
100755 → 100644
Empty file.
Empty file.
Empty file modified epoxy-adapter/src/test/java/com/airbnb/epoxy/TestAdapter.java
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/src/test/java/com/airbnb/epoxy/TestModel.java
100755 → 100644
Empty file.
Empty file modified epoxy-adapter/src/test/java/com/airbnb/epoxy/TestObserver.java
100755 → 100644
Empty file.
Empty file modified epoxy-annotations/.gitignore
100755 → 100644
Empty file.
Empty file modified epoxy-annotations/build.gradle
100755 → 100644
Empty file.
Empty file modified epoxy-annotations/gradle.properties
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-processor/.gitignore
100755 → 100644
Empty file.
Empty file modified epoxy-processor/build.gradle
100755 → 100644
Empty file.
Empty file modified epoxy-processor/gradle.properties
100755 → 100644
Empty file.
Empty file modified epoxy-processor/src/main/java/com/airbnb/epoxy/AttributeInfo.kt
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithAnnotation.java
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithFinalClass.java
100755 → 100644
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithFinalField.java
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithSuper.java
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithSuper_.java
100755 → 100644
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithType.java
100755 → 100644
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithType_.java
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithoutSetter.java
100755 → 100644
Empty file.
Empty file modified epoxy-processortest/src/test/resources/ModelWithoutSetter_.java
100755 → 100644
Empty file.
Empty file modified epoxy-processortest/src/test/resources/package-info.java
100755 → 100644
Empty file.
Empty file modified epoxy-sample/.gitignore
100755 → 100644
Empty file.
Empty file modified epoxy-sample/build.gradle
100755 → 100644
Empty file.
Empty file modified epoxy-sample/proguard-rules.pro
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/AndroidManifest.xml
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified epoxy-sample/src/main/res/drawable/ic_add_circle.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/drawable/ic_change.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/drawable/ic_delete.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/drawable/ic_shuffle.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/layout/activity_main.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/layout/number_view.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/layout/view_header.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/values-w820dp/dimens.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/values/dimens.xml
100755 → 100644
Empty file.
Empty file modified epoxy-sample/src/main/res/values/strings.xml
100755 → 100644
Empty file.
Empty file modified gradle.properties
100755 → 100644
Empty file.
Empty file modified gradle/wrapper/gradle-wrapper.properties
100755 → 100644
Empty file.
Empty file modified gradlew.bat
100755 → 100644
Empty file.
Empty file modified settings.gradle
100755 → 100644
Empty file.
Empty file modified update_processor_test_resources.rb
100755 → 100644
Empty file.

0 comments on commit 49b7a07

Please sign in to comment.