Skip to content

Commit

Permalink
Removed unnecessary HTML button code
Browse files Browse the repository at this point in the history
  • Loading branch information
aforcier committed Apr 21, 2015
1 parent f144a88 commit baa00c8
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class EditorFragment extends EditorFragmentAbstract implements View.OnCli
private static final String TAG_FORMAT_BAR_BUTTON_UL = "unorderedList";
private static final String TAG_FORMAT_BAR_BUTTON_OL = "orderedList";
private static final String TAG_FORMAT_BAR_BUTTON_LINK = "link";
private static final String TAG_FORMAT_BAR_BUTTON_HTML = "html";

private static final float TOOLBAR_ALPHA_ENABLED = 1;
private static final float TOOLBAR_ALPHA_DISABLED = 0.5f;
Expand All @@ -52,8 +51,6 @@ public class EditorFragment extends EditorFragmentAbstract implements View.OnCli
private Activity mActivity;
private EditorWebView mWebView;

private ToggleButton mHtmlButton;

private final Map<String, ToggleButton> mTagToggleButtonMap = new HashMap<>();

public static EditorFragment newInstance(String title, String content) {
Expand Down Expand Up @@ -105,8 +102,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
ToggleButton linkButton = (ToggleButton) view.findViewById(R.id.format_bar_button_link);
mTagToggleButtonMap.put(TAG_FORMAT_BAR_BUTTON_LINK, linkButton);

mHtmlButton = (ToggleButton) view.findViewById(R.id.format_bar_button_html);
mHtmlButton.setOnClickListener(this);
ToggleButton htmlButton = (ToggleButton) view.findViewById(R.id.format_bar_button_html);
htmlButton.setOnClickListener(this);

for (ToggleButton button : mTagToggleButtonMap.values()) {
button.setOnClickListener(this);
Expand Down

0 comments on commit baa00c8

Please sign in to comment.