Skip to content

Commit

Permalink
Replacing WPButton with Button
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonye committed May 3, 2017
1 parent 439a184 commit 4590c8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import org.wordpress.android.R;
Expand All @@ -15,7 +16,6 @@
import org.wordpress.android.util.DisplayUtils;
import org.wordpress.android.util.NetworkUtils;
import org.wordpress.android.widgets.RecyclerItemDecoration;
import org.wordpress.android.widgets.WPButton;

public class PublicizeListFragment extends PublicizeBaseFragment {
public interface PublicizeManageConnectionsListener {
Expand All @@ -27,7 +27,7 @@ public interface PublicizeManageConnectionsListener {
private PublicizeServiceAdapter mAdapter;
private RecyclerView mRecycler;
private TextView mEmptyView;
private WPButton mManageButton;
private Button mManageButton;

public static PublicizeListFragment newInstance(int siteId) {
Bundle args = new Bundle();
Expand Down Expand Up @@ -64,7 +64,7 @@ public void onResume() {
}
getAdapter().refresh();
setTitle(R.string.sharing);
setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);
setNavigationIcon(R.drawable.ic_arrow_left);
}

@Override
Expand All @@ -79,7 +79,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa

mRecycler = (RecyclerView) rootView.findViewById(R.id.recycler_view);
mEmptyView = (TextView) rootView.findViewById(R.id.empty_view);
mManageButton = (WPButton) rootView.findViewById(R.id.manage_button);
mManageButton = (Button) rootView.findViewById(R.id.manage_button);

int spacingHorizontal = 0;
int spacingVertical = DisplayUtils.dpToPx(getActivity(), 1);
Expand Down
2 changes: 1 addition & 1 deletion WordPress/src/main/res/layout/publicize_list_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
android:textColor="@color/grey_dark"
android:textSize="@dimen/text_sz_medium" />

<org.wordpress.android.widgets.WPButton
<Button
android:id="@+id/manage_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 4590c8f

Please sign in to comment.