Autodetect legacy/material

This commit is contained in:
mittorn
2016-05-01 12:53:36 +00:00
parent 156171d77a
commit 80a1f6c4c8
4 changed files with 11 additions and 0 deletions
@@ -21,6 +21,9 @@ public class ShortcutActivity extends Activity
protected void onCreate(Bundle bundle)
{
super.onCreate(bundle);
//material dialog
if ( Build.VERSION.SDK_INT >= 21 )
super.setTheme( 0x01030225 );
setContentView(R.layout.activity_shortcut);
Intent intent=getIntent();
name = (EditText)findViewById(R.id.shortcut_name);