Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Issue #116 #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public void toggle(final long duration, final @Nullable TimeInterpolator interpo
*/
@Override
public void expand() {
if (isAnimating) return;
if (isAnimating || isExpanded()) return;

createExpandAnimator(getCurrentPosition(), layoutSize, duration, interpolator).start();
}
Expand All @@ -226,7 +226,7 @@ public void expand() {
*/
@Override
public void expand(final long duration, final @Nullable TimeInterpolator interpolator) {
if (isAnimating) return;
if (isAnimating || isExpanded()) return;

if (duration <= 0) {
move(layoutSize, duration, interpolator);
Expand All @@ -240,7 +240,7 @@ public void expand(final long duration, final @Nullable TimeInterpolator interpo
*/
@Override
public void collapse() {
if (isAnimating) return;
if (isAnimating || !isExpanded()) return;

createExpandAnimator(getCurrentPosition(), closePosition, duration, interpolator).start();
}
Expand All @@ -250,7 +250,7 @@ public void collapse() {
*/
@Override
public void collapse(final long duration, final @Nullable TimeInterpolator interpolator) {
if (isAnimating) return;
if (isAnimating || !isExpanded()) return;

if (duration <= 0) {
move(closePosition, duration, interpolator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void toggle(final long duration, final @Nullable TimeInterpolator interpo
*/
@Override
public void expand() {
if (isAnimating) return;
if (isAnimating || isExpanded()) return;

createExpandAnimator(getCurrentPosition(), layoutSize, duration, interpolator).start();
}
Expand All @@ -235,7 +235,7 @@ public void expand() {
*/
@Override
public void expand(final long duration, final @Nullable TimeInterpolator interpolator) {
if (isAnimating) return;
if (isAnimating || isExpanded()) return;

if (duration <= 0) {
move(layoutSize, duration, interpolator);
Expand All @@ -249,7 +249,7 @@ public void expand(final long duration, final @Nullable TimeInterpolator interpo
*/
@Override
public void collapse() {
if (isAnimating) return;
if (isAnimating || !isExpanded()) return;

createExpandAnimator(getCurrentPosition(), closePosition, duration, interpolator).start();
}
Expand All @@ -259,7 +259,7 @@ public void collapse() {
*/
@Override
public void collapse(final long duration, final @Nullable TimeInterpolator interpolator) {
if (isAnimating) return;
if (isAnimating || !isExpanded()) return;

if (duration <= 0) {
move(closePosition, duration, interpolator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void toggle(final long duration, @Nullable final TimeInterpolator interpo
*/
@Override
public void expand() {
if (isAnimating) return;
if (isAnimating || isExpanded()) return;

createExpandAnimator(0, layoutWeight, duration, interpolator).start();
}
Expand All @@ -157,7 +157,7 @@ public void expand() {
*/
@Override
public void expand(final long duration, @Nullable final TimeInterpolator interpolator) {
if (isAnimating) return;
if (isAnimating || isExpanded()) return;

if (duration <= 0) {
isExpanded = true;
Expand All @@ -174,7 +174,7 @@ public void expand(final long duration, @Nullable final TimeInterpolator interpo
*/
@Override
public void collapse() {
if (isAnimating) return;
if (isAnimating || !isExpanded()) return;

createExpandAnimator(getCurrentWeight(), 0, duration, interpolator).start();
}
Expand All @@ -184,7 +184,7 @@ public void collapse() {
*/
@Override
public void collapse(final long duration, @Nullable final TimeInterpolator interpolator) {
if (isAnimating) return;
if (isAnimating || !isExpanded()) return;

if (duration <= 0) {
isExpanded = false;
Expand Down