From 81edf5d2770796273540dde77614f6d8f8880347 Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Mon, 30 Jul 2018 22:03:14 -0300 Subject: [PATCH] fixed line lengths and unused imports --- .../android/models/PublicizeServiceList.java | 29 ++++++++++--------- .../ui/publicize/PublicizeActions.java | 3 +- .../ui/publicize/PublicizeDetailFragment.java | 2 -- .../ui/publicize/PublicizeListActivity.java | 3 +- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/WordPress/src/main/java/org/wordpress/android/models/PublicizeServiceList.java b/WordPress/src/main/java/org/wordpress/android/models/PublicizeServiceList.java index 5f5db9a7f9bc..f56e2d2767b2 100644 --- a/WordPress/src/main/java/org/wordpress/android/models/PublicizeServiceList.java +++ b/WordPress/src/main/java/org/wordpress/android/models/PublicizeServiceList.java @@ -41,20 +41,21 @@ public boolean isSameAs(PublicizeServiceList otherList) { * passed JSON is the response from /meta/external-services?type=publicize "services": { "facebook":{ - "ID":"facebook", - "label":"Facebook", - "type":"publicize", - "description":"Publish your posts to your Facebook timeline or page.", - "genericon":{ - "class":"facebook-alt", - "unicode":"\\f203" - }, - "icon":"http:\/\/i.wordpress.com\/wp-content\/admin-plugins\/publicize\/assets\/publicize-fb-2x.png", - "connect_URL":"https:\/\/public-api.wordpress.com\/connect\/?action=request&kr_nonce=a1e2ad2b80&nonce=c4b69a25c1&for=connect&service=facebook&kr_blog_nonce=0ae2027be9&magic=keyring&blog=90298630", - "multiple_external_user_ID_support":true, - "external_users_only":true, - "jetpack_support":true, - "jetpack_module_required":"publicize" + "ID":"facebook", + "label":"Facebook", + "type":"publicize", + "description":"Publish your posts to your Facebook timeline or page.", + "genericon":{ + "class":"facebook-alt", + "unicode":"\\f203" + }, + "icon":"http:\/\/i.wordpress.com\/wp-content\/admin-plugins\/publicize\/assets\/publicize-fb-2x.png", + "connect_URL":"https:\/\/public-api.wordpress.com\/connect\/?action=request&kr_nonce=a1e2ad2b80 + &nonce=c4b69a25c1&for=connect&service=facebook&kr_blog_nonce=0ae2027be9&magic=keyring&blog=90298630", + "multiple_external_user_ID_support":true, + "external_users_only":true, + "jetpack_support":true, + "jetpack_module_required":"publicize" }, ... */ diff --git a/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeActions.java b/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeActions.java index 3876c156bd15..d8dedddf71b1 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeActions.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeActions.java @@ -113,7 +113,8 @@ public void onErrorResponse(VolleyError volleyError) { * step two in creating a publicize connection: now that we have the keyring connection id, * create the actual connection */ - public static void connectStepTwo(final long siteId, long keyringConnectionId, final String serviceId, final String externalUserId) { + public static void connectStepTwo(final long siteId, long keyringConnectionId, + final String serviceId, final String externalUserId) { RestRequest.Listener listener = new RestRequest.Listener() { @Override public void onResponse(JSONObject jsonObject) { diff --git a/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeDetailFragment.java b/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeDetailFragment.java index 5f9910b76f42..dd5d8484b703 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeDetailFragment.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeDetailFragment.java @@ -2,13 +2,11 @@ import android.os.Bundle; import android.support.annotation.NonNull; -import android.support.v7.widget.AppCompatButton; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; -import android.widget.Button; import android.widget.TextView; import org.wordpress.android.R; diff --git a/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeListActivity.java b/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeListActivity.java index 1e9df6f7f095..6298a6a2ede1 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeListActivity.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeListActivity.java @@ -323,7 +323,8 @@ public void onEventMainThread(PublicizeEvents.ActionAccountChosen event) { return; } - PublicizeActions.connectStepTwo(event.getSiteId(), event.getKeychainId(), event.getService(), event.getExternalUserId()); + PublicizeActions.connectStepTwo(event.getSiteId(), event.getKeychainId(), + event.getService(), event.getExternalUserId()); mProgressDialog = new ProgressDialog(this); mProgressDialog.setMessage(getString(R.string.connecting_account)); mProgressDialog.show();