android: add adaptive icons for 26. Fix references to icons.

This commit is contained in:
Alibek Omarov
2019-12-01 01:27:21 +03:00
parent e72b89a88b
commit c22c227108
21 changed files with 19 additions and 9 deletions

View File

@@ -108,7 +108,7 @@ public class ShortcutActivity extends Activity
catch(Exception e)
{
// Android may not support ico loading, so fallback if something going wrong
icon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);
icon = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);
}
wrapIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON, icon);
if(getIntent().getAction() == "android.intent.action.CREATE_SHORTCUT" ) // Called from launcher