mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
mipmap does not work on 4.2-
This commit is contained in:
parent
d683f32a34
commit
ac0e9b633d
@ -9,7 +9,7 @@
|
|||||||
android:installLocation="auto">
|
android:installLocation="auto">
|
||||||
|
|
||||||
<application android:label="@string/app_name"
|
<application android:label="@string/app_name"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:roundIcon="@mipmap/ic_launcher"
|
android:roundIcon="@mipmap/ic_launcher"
|
||||||
android:allowBackup="false"
|
android:allowBackup="false"
|
||||||
android:fullBackupOnly="false"
|
android:fullBackupOnly="false"
|
||||||
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
<activity android:name="su.xash.engine.LauncherActivity"
|
<activity android:name="su.xash.engine.LauncherActivity"
|
||||||
android:label="@string/launcher_name"
|
android:label="@string/launcher_name"
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:windowSoftInputMode="adjustResize"
|
android:windowSoftInputMode="adjustResize"
|
||||||
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize">
|
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
android:layout_height="89dp"
|
android:layout_height="89dp"
|
||||||
android:id="@+id/aboutIcon"
|
android:id="@+id/aboutIcon"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:src="@mipmap/ic_launcher" />
|
android:src="@drawable/ic_launcher" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="2dp"
|
android:layout_margin="2dp"
|
||||||
android:src="@mipmap/ic_launcher" />
|
android:src="@drawable/ic_launcher"
|
||||||
|
android:id="@+id/launcherIcon" />
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView_tittle"
|
android:id="@+id/textView_tittle"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/status_image"
|
android:id="@+id/status_image"
|
||||||
android:src="@mipmap/ic_launcher"
|
android:src="@drawable/ic_launcher"
|
||||||
android:layout_weight="0"
|
android:layout_weight="0"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_width="48dp"
|
android:layout_width="48dp"
|
||||||
|
@ -114,7 +114,7 @@ public class FPicker extends Activity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String num_item = getResources().getQuantityString(R.plurals.item_plurals, buf, buf);
|
String num_item = getResources().getQuantityString(R.plurals.item_plurals, buf, buf);
|
||||||
dir.add(new Item(ff.getName(), num_item, date_modify, ff.getAbsolutePath(), isXashDir ? R.mipmap.ic_launcher : R.drawable.folder ));
|
dir.add(new Item(ff.getName(), num_item, date_modify, ff.getAbsolutePath(), isXashDir ? R.drawable.ic_launcher : R.drawable.folder ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ public class ShortcutActivity extends Activity
|
|||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
// Android may not support ico loading, so fallback if something going wrong
|
// Android may not support ico loading, so fallback if something going wrong
|
||||||
icon = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);
|
icon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);
|
||||||
}
|
}
|
||||||
wrapIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON, icon);
|
wrapIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON, icon);
|
||||||
if(getIntent().getAction() == "android.intent.action.CREATE_SHORTCUT" ) // Called from launcher
|
if(getIntent().getAction() == "android.intent.action.CREATE_SHORTCUT" ) // Called from launcher
|
||||||
|
Loading…
Reference in New Issue
Block a user