Skip to content

Commit

Permalink
Bug fixes for Advanced options
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleker committed Mar 21, 2017
1 parent 3da91de commit 382ae71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Expand Up @@ -55,11 +55,11 @@ public void onClick(DialogInterface dialog, int which) {
}

private static void openAdvancedOptions(final Activity activity, final ResolveInfo resolveInfo) {
final AlertDialog dialog = new AlertDialog.Builder(activity)
final AlertDialog dialog = new AlertDialog.Builder(new ContextThemeWrapper(activity, R.style.dialog_theme))
.setTitle(R.string.advanced_options)
.setView(R.layout.dialog_app_shortcut_editor)
.setNegativeButton(R.string.cancel, null)
.show();
.create();
dialog.setButton(Dialog.BUTTON_POSITIVE,
activity.getString(R.string.create_shortcut),
new DialogInterface.OnClickListener() {
Expand All @@ -74,6 +74,7 @@ public void onClick(DialogInterface dialogInterface, int which) {
generateShortcut(activity, resolveInfo, options);
}
});
dialog.show();
}

private static void downloadShortcutApk(Activity activity, NetworkResponse response, Object item) {
Expand Down
Expand Up @@ -114,7 +114,7 @@ protected Map<String, DataPart> getByteData() {
app.activityInfo.loadIcon(context.getPackageManager())),
"image/png"));
if (options.getBanner() != null) {
params.put(FORM_APP_LOGO, new DataPart("file_avatar.png", options.getBanner(),
params.put(FORM_APP_BANNER, new DataPart("file_avatar.png", options.getBanner(),
"image/png"));
}
return params;
Expand Down
Binary file added promo/screenshots/device-2017-03-21-011142.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added promo/screenshots/device-2017-03-21-011512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 382ae71

Please sign in to comment.