Refactoring

pull/215/head
M66B 7 months ago
parent a454f9cbed
commit d116d72552

@ -141,10 +141,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
int abh = Helper.getActionBarHeight(this);
appbar.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
@Override
public void onOffsetChanged(AppBarLayout appBarLayout, int i) {
public void onOffsetChanged(AppBarLayout appBarLayout, int offset) {
try {
ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
mlp.topMargin = abh + i;
mlp.topMargin = abh + offset;
view.setLayoutParams(mlp);
} catch (Throwable ex) {
Log.e(ex);

Loading…
Cancel
Save