Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Resources: Add Scanner launcher icon
Browse files Browse the repository at this point in the history
Signed-off-by: Fung Go <[email protected]>
  • Loading branch information
fython committed Jul 20, 2016
1 parent 39be641 commit 876a26a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getIntent().getAction().equals(Intent.ACTION_CREATE_SHORTCUT)) {
Intent intent = new Intent();
Parcelable icon = Intent.ShortcutIconResource.fromContext(this, R.mipmap.ic_launcher);
Parcelable icon = Intent.ShortcutIconResource.fromContext(this, R.mipmap.ic_scanner_launcher);

intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.activity_scanner));
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, icon);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 876a26a

Please sign in to comment.