Cleanup titles and content of more dialogs, also removed unnecessary empty dialog callbacks (you don't need to manually dismiss dialogs with auto dismiss on by default)
More dialog cleanup The queue dialog will scroll to the queue position everytime it opens Updates FAB ripple color is set Re-added accidentally removed method
This commit is contained in:
parent
d5c5d02360
commit
f7c91839ba
12 changed files with 96 additions and 81 deletions
|
|
@ -57,10 +57,12 @@ public abstract class AbsFabActivity extends AbsBaseActivity {
|
|||
if (accentColor == Color.WHITE) {
|
||||
getFab().setColorNormal(accentColor);
|
||||
getFab().setColorPressed(ColorChooserDialog.shiftColorDown(accentColor));
|
||||
getFab().setColorRipple(ColorChooserDialog.shiftColorUp(accentColor));
|
||||
getFab().getDrawable().setColorFilter(Color.BLACK, PorterDuff.Mode.SRC_IN);
|
||||
} else {
|
||||
getFab().setColorNormal(accentColor);
|
||||
getFab().setColorPressed(ColorChooserDialog.shiftColorUp(accentColor));
|
||||
getFab().setColorRipple(ColorChooserDialog.shiftColorDown(accentColor));
|
||||
getFab().getDrawable().clearColorFilter();
|
||||
}
|
||||
|
||||
|
|
@ -122,6 +124,10 @@ public abstract class AbsFabActivity extends AbsBaseActivity {
|
|||
updateControllerState();
|
||||
}
|
||||
|
||||
protected void updateControllerState() {
|
||||
updateFabState();
|
||||
}
|
||||
|
||||
public Pair[] getSharedViewsWithFab(Pair[] sharedViews) {
|
||||
Pair[] sharedViewsWithFab;
|
||||
if (sharedViews != null) {
|
||||
|
|
@ -134,10 +140,6 @@ public abstract class AbsFabActivity extends AbsBaseActivity {
|
|||
return sharedViewsWithFab;
|
||||
}
|
||||
|
||||
protected void updateControllerState() {
|
||||
updateFabState();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
|
|
|||
|
|
@ -142,10 +142,6 @@ public class PlayPauseDrawable extends Drawable {
|
|||
return anim;
|
||||
}
|
||||
|
||||
public boolean isPlay() {
|
||||
return isPlaySet;
|
||||
}
|
||||
|
||||
private void setProgress(float progress) {
|
||||
this.progress = progress;
|
||||
invalidateSelf();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue