Skip to content

Commit

Permalink
style: fixed padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed May 25, 2017
1 parent dfc149f commit 4a4c38c
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/android/io/branch/BranchSDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -414,21 +414,21 @@ private void createBranchUniversalObject(JSONObject options, CallbackContext cal
private void showShareSheet(int instanceIdx, JSONObject options, JSONObject controlParams, JSONObject strings) throws JSONException {

ShareSheetStyle shareSheetStyle = new ShareSheetStyle(this.activity, strings.getString("shareTitle"), strings.getString("shareText"))
.setCopyUrlStyle(this.activity.getResources().getDrawable(android.R.drawable.ic_menu_send), strings.getString("copyToClipboard"), strings.getString("clipboardSuccess"))
.setMoreOptionStyle(this.activity.getResources().getDrawable(android.R.drawable.ic_menu_search), strings.getString("more"))
.addPreferredSharingOption(SharingHelper.SHARE_WITH.FACEBOOK)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.EMAIL)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.MESSAGE)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.TWITTER)
.setAsFullWidthStyle(true)
.setSharingTitle(strings.getString("shareWith"));
.setCopyUrlStyle(this.activity.getResources().getDrawable(android.R.drawable.ic_menu_send), strings.getString("copyToClipboard"), strings.getString("clipboardSuccess"))
.setMoreOptionStyle(this.activity.getResources().getDrawable(android.R.drawable.ic_menu_search), strings.getString("more"))
.addPreferredSharingOption(SharingHelper.SHARE_WITH.FACEBOOK)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.EMAIL)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.MESSAGE)
.addPreferredSharingOption(SharingHelper.SHARE_WITH.TWITTER)
.setAsFullWidthStyle(true)
.setSharingTitle(strings.getString("shareWith"));

BranchUniversalObjectWrapper branchObjWrapper = (BranchUniversalObjectWrapper) this.branchObjectWrappers.get(instanceIdx);
BranchLinkProperties linkProperties = createLinkProperties(options, controlParams);
BranchUniversalObject branchObj = branchObjWrapper.branchUniversalObj;

branchObj.showShareSheet(this.activity, linkProperties, shareSheetStyle,
new ShowShareSheetListener(branchObjWrapper.onShareLinkDialogLaunched, branchObjWrapper.onShareLinkDialogDismissed, branchObjWrapper.onLinkShareResponse, branchObjWrapper.onChannelSelected));
new ShowShareSheetListener(branchObjWrapper.onShareLinkDialogLaunched, branchObjWrapper.onShareLinkDialogDismissed, branchObjWrapper.onLinkShareResponse, branchObjWrapper.onChannelSelected));

}

Expand Down Expand Up @@ -470,7 +470,7 @@ private BranchLinkProperties createLinkProperties(JSONObject options, JSONObject
for (int i=0; i<array.length(); i++){
linkProperties.addTag(array.get(i).toString());
}
}
}
}

Log.d(LCAT, "Adding control parameters:");
Expand Down Expand Up @@ -1151,7 +1151,5 @@ public void run() {
e.printStackTrace();
}
}

}

}

0 comments on commit 4a4c38c

Please sign in to comment.