resources: copy mipmaps to drawable, ensure mipmap used on 19+ and xml icon on 26+ when possible

This commit is contained in:
mittorn
2020-07-08 01:03:18 +07:00
parent d6c715c5c3
commit addd2f76ef
12 changed files with 75 additions and 47 deletions

View File

@@ -60,12 +60,12 @@ public class LauncherActivity extends Activity
setContentView(R.layout.activity_launcher);
if( sdk > 17 )
/* if( sdk > 17 )
{
ImageView icon = (ImageView) findViewById(R.id.launcherIcon);
icon.setImageDrawable(getResources().getDrawable(R.mipmap.ic_launcher));
}
*/
TabHost tabHost = (TabHost) findViewById(R.id.tabhost);
tabHost.setup();
@@ -439,12 +439,12 @@ public class LauncherActivity extends Activity
dialog.setContentView(R.layout.about);
dialog.setCancelable(true);
dialog.show();
if( sdk > 17 )
/* if( sdk > 17 )
{
ImageView icon = (ImageView) dialog.findViewById(R.id.aboutIcon);
icon.setImageDrawable(getResources().getDrawable(R.mipmap.ic_launcher));
}
*/
TextView tView6 = (TextView) dialog.findViewById(R.id.textView6);
tView6.setMovementMethod(LinkMovementMethod.getInstance());
((Button)dialog.findViewById( R.id.button_about_ok )).setOnClickListener(new View.OnClickListener(){