Add resources for notification size limitations
This commit is contained in:
parent
49a44b3cb0
commit
5abd36612d
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
|
@ -1,51 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
|
||||||
====================================================================
|
|
||||||
Copyright (c) 2012-2013 LoungeKatt Entertainment. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in
|
|
||||||
the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
|
|
||||||
3. All advertising materials mentioning features or use of this
|
|
||||||
code must be open-source and display the following disclaimer:
|
|
||||||
"This product includes software developed by LoungeKatt" unless
|
|
||||||
otherwise displayed by published public repository entries.
|
|
||||||
|
|
||||||
4. The names "LoungeKatt" and "StarKissed" must not be used to
|
|
||||||
endorse or promote products derived from this software without
|
|
||||||
prior written permission. For written permission, please contact
|
|
||||||
admin@loungekatt.com.
|
|
||||||
|
|
||||||
5. Products derived from this software may not be called "StarKissed"
|
|
||||||
nor may "StarKissed" appear in their names without prior written
|
|
||||||
permission of LoungeKatt Entertainment.
|
|
||||||
|
|
||||||
6. Redistributions of any form whatsoever without public source
|
|
||||||
must retain the following acknowledgment:
|
|
||||||
"This product includes source code developed by LoungeKatt"
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY LoungeKatt ``AS IS'' AND ANY
|
|
||||||
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
|
|
||||||
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
||||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
||||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
||||||
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
||||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
====================================================================
-->
|
|
||||||
|
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/toast_layout_root"
|
android:id="@+id/toast_layout_root"
|
||||||
|
|
|
@ -397,8 +397,7 @@ public class MainActivity extends SlidingFragmentActivity implements
|
||||||
|
|
||||||
public void onGameSelected(Uri uri) {
|
public void onGameSelected(Uri uri) {
|
||||||
if (Config.readOutput("uname -a").equals(getString(R.string.error_kernel))) {
|
if (Config.readOutput("uname -a").equals(getString(R.string.error_kernel))) {
|
||||||
Toast.makeText(MainActivity.this, R.string.unsupported,
|
MainActivity.showToastMessage(MainActivity.this, getString(R.string.unsupported), Toast.LENGTH_SHORT);
|
||||||
Toast.LENGTH_SHORT).show();
|
|
||||||
}
|
}
|
||||||
String msg = null;
|
String msg = null;
|
||||||
if (!isBiosExisting(MainActivity.this))
|
if (!isBiosExisting(MainActivity.this))
|
||||||
|
@ -647,7 +646,7 @@ public class MainActivity extends SlidingFragmentActivity implements
|
||||||
View layout = inflater.inflate(R.layout.toast_layout, null);
|
View layout = inflater.inflate(R.layout.toast_layout, null);
|
||||||
|
|
||||||
ImageView image = (ImageView) layout.findViewById(R.id.image);
|
ImageView image = (ImageView) layout.findViewById(R.id.image);
|
||||||
image.setImageResource(R.drawable.ic_launcher);
|
image.setImageResource(R.drawable.ic_notification);
|
||||||
TextView text = (TextView) layout.findViewById(R.id.text);
|
TextView text = (TextView) layout.findViewById(R.id.text);
|
||||||
text.setText(message);
|
text.setText(message);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue