diff options
author | ByteHamster <info@bytehamster.com> | 2020-03-01 00:17:32 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-03-01 00:17:32 +0100 |
commit | 018cbf1b30983c108c5fe5508cbc819c78cd5a85 (patch) | |
tree | fcf8bfe8749f3ec40bf1741846d5d9bdc66e18d6 /app | |
parent | 727e83eac667e74b0aa8096695d5028140b50c54 (diff) | |
download | AntennaPod-018cbf1b30983c108c5fe5508cbc819c78cd5a85.zip |
Fixed ItemFragment typos
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/VisitWebsiteActionButton.java | 2 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/VisitWebsiteActionButton.java b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/VisitWebsiteActionButton.java index 5eb8c1fb6..46712a666 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/VisitWebsiteActionButton.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/VisitWebsiteActionButton.java @@ -35,6 +35,6 @@ public class VisitWebsiteActionButton extends ItemActionButton { @Override public int getVisibility() { - return (item.getLink() != null) ? View.INVISIBLE : View.VISIBLE; + return (item.getLink() == null) ? View.INVISIBLE : View.VISIBLE; } } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java index de6eb6dd6..fdb4ece20 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java @@ -286,7 +286,7 @@ public class ItemFragment extends Fragment { butAction2Text.setTransformationMethod(null); getContext().getTheme().resolveAttribute(actionButton2.getDrawable(), typedValue, true); butAction2Icon.setImageResource(typedValue.resourceId); - butAction2.setVisibility(actionButton1.getVisibility()); + butAction2.setVisibility(actionButton2.getVisibility()); } @Override |