changed AccountActivity so that after following someone the FAB hides itself

This commit is contained in:
Zachary Epps 2017-04-05 13:49:28 -04:00
parent 2cb0b96abd
commit cbae26dd4c
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,7 @@ dependencies {
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'com.github.bluzwong:swipeback:0.2.0@aar'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
}

View File

@ -292,7 +292,7 @@ public class AccountActivity extends BaseActivity {
private void updateButtons() {
invalidateOptionsMenu();
FloatingActionButton floatingBtn = (FloatingActionButton) findViewById(R.id.floating_btn);
final FloatingActionButton floatingBtn = (FloatingActionButton) findViewById(R.id.floating_btn);
if(!isSelf && !blocking && !following) {
floatingBtn.show();
@ -301,6 +301,7 @@ public class AccountActivity extends BaseActivity {
@Override
public void onClick(View v) {
follow(accountId);
floatingBtn.hide();
}
});
}