Skip to content

Commit

Permalink
Always show Complete FAB on task details in single pane mode. #614 (#657
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Gabor Keszthelyi authored and dmfs committed Feb 5, 2018
1 parent 9b6c79f commit 77b29b0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public void onDestroyView()
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
mShowFloatingActionButton = getResources().getBoolean(R.bool.opentasks_enabled_detail_view_fab);
mShowFloatingActionButton = !getResources().getBoolean(R.bool.has_two_panes);

mRootView = inflater.inflate(R.layout.fragment_task_view_detail, container, false);
mContent = (ViewGroup) mRootView.findViewById(R.id.content);
Expand Down
1 change: 0 additions & 1 deletion opentasks/src/main/res/values-large-land/bools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
<resources>

<bool name="has_two_panes">true</bool>
<bool name="opentasks_enabled_detail_view_fab">true</bool>

</resources>
1 change: 0 additions & 1 deletion opentasks/src/main/res/values-sw600dp/bools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
<resources>

<bool name="has_two_panes">false</bool>
<bool name="opentasks_enabled_detail_view_fab">false</bool>

</resources>
1 change: 0 additions & 1 deletion opentasks/src/main/res/values/bools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
<resources>

<bool name="has_two_panes">false</bool>
<bool name="opentasks_enabled_detail_view_fab">true</bool>

</resources>

0 comments on commit 77b29b0

Please sign in to comment.