why is this bitwise or in there wtf

This commit is contained in:
Andrew Dolgov 2015-05-29 12:37:08 +03:00
parent 1b603e10a9
commit 4e2bf266e2
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ public class ArticleFragment extends Fragment {
if (t >= oldt && t >= ab.getHeight()) {
ab.hide();
} else if (t <= ab.getHeight() | oldt - t >= 10) {
} else if (t <= ab.getHeight() || oldt - t >= 10) {
ab.show();
}

View File

@ -146,7 +146,7 @@ public class OfflineArticleFragment extends Fragment {
if (t >= oldt && t >= ab.getHeight()) {
ab.hide();
} else if (t <= ab.getHeight() | oldt - t >= 10) {
} else if (t <= ab.getHeight() || oldt - t >= 10) {
ab.show();
}