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

View file

@ -7,6 +7,7 @@ import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Environment;
import android.os.Bundle;
import android.os.Build;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
@ -34,6 +35,8 @@ public class FPicker extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if ( Build.VERSION.SDK_INT >= 21 )
super.setTheme( 0x01030224 );
setContentView(R.layout.activity_fpicker);
String path = Environment.getExternalStorageDirectory().toString();
currentDir = new File(path);

View file

@ -46,6 +46,9 @@ public class LauncherActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
//super.setTheme( 0x01030005 );
if ( Build.VERSION.SDK_INT >= 21 )
super.setTheme( 0x01030224 );
setContentView(R.layout.activity_launcher);
TabHost tabHost = (TabHost) findViewById(R.id.tabhost);

View file

@ -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);

View file

@ -54,6 +54,8 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="in.celest.xash3d.FPicker"></activity>
<activity android:name="org.libsdl.app.SDLActivity"
android:screenOrientation="sensorLandscape"
android:configChanges="orientation|screenSize"