REmove pregenerated XashConfig, choose Legacy theme if sdk < 21

This commit is contained in:
a1batross 2016-09-13 21:06:41 +03:00
parent 58f8f87e61
commit 19bae91be1
4 changed files with 3 additions and 20 deletions

View file

@ -44,6 +44,7 @@ public class FPicker extends Activity {
super.onCreate(savedInstanceState);
if ( sdk >= 21 )
super.setTheme( 0x01030224 );
else super.setTheme( 0x01030005 );
setContentView(R.layout.activity_fpicker);
String path = Environment.getExternalStorageDirectory().toString();

View file

@ -86,9 +86,8 @@ public class LauncherActivity extends Activity {
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
//super.setTheme( 0x01030005 );
if ( sdk >= 21 )
{
super.setTheme( 0x01030224 );
}
else super.setTheme( 0x01030005 );
if( XashActivity.dumbAntiPDALifeCheck( this ) )
{

View file

@ -26,6 +26,7 @@ public class ShortcutActivity extends Activity
//material dialog
if ( sdk >= 21 )
super.setTheme( 0x01030225 );
else super.setTheme( 0x01030005 );
setContentView(R.layout.activity_shortcut);
Intent intent=getIntent();
name = (EditText)findViewById(R.id.shortcut_name);

View file

@ -1,18 +0,0 @@
package in.celest.xash3d;
/* TODO: This file should be generated... somehow */
public class XashConfig
{
// in.celest.xash3d.hl.test otherwise main package
public static final boolean PKG_TEST = false;
// check signature enable
public static final boolean CHECK_SIGNATURES = false;
// public release
public static final boolean RELEASE = false;
// public release for Google Play
public static final boolean GP_VERSION = false;
}