Failed try to fix the fabled fab problem
This commit is contained in:
parent
901c7c3806
commit
fe519f10a1
|
@ -76,6 +76,7 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
|
||||||
protected PhotoViewer currentPhotoViewer;
|
protected PhotoViewer currentPhotoViewer;
|
||||||
protected ImageButton fab;
|
protected ImageButton fab;
|
||||||
protected boolean isScrollingUp = false;
|
protected boolean isScrollingUp = false;
|
||||||
|
// protected boolean isFirstLaunch = true;
|
||||||
protected HashMap<String, Account> knownAccounts=new HashMap<>();
|
protected HashMap<String, Account> knownAccounts=new HashMap<>();
|
||||||
protected HashMap<String, Relationship> relationships=new HashMap<>();
|
protected HashMap<String, Relationship> relationships=new HashMap<>();
|
||||||
protected Rect tmpRect=new Rect();
|
protected Rect tmpRect=new Rect();
|
||||||
|
@ -286,8 +287,8 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
|
||||||
currentPhotoViewer.offsetView(-dx, -dy);
|
currentPhotoViewer.offsetView(-dx, -dy);
|
||||||
|
|
||||||
if (fab!=null) {
|
if (fab!=null) {
|
||||||
if (dy > 0 ) {
|
if (dy > 0 /*&& !isFirstLaunch*/) {
|
||||||
if (isScrollingUp) {
|
if (isScrollingUp /*&& !isFirstLaunch*/) {
|
||||||
fab.setVisibility(View.INVISIBLE);
|
fab.setVisibility(View.INVISIBLE);
|
||||||
TranslateAnimation animate = new TranslateAnimation(
|
TranslateAnimation animate = new TranslateAnimation(
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in New Issue