One final tweak to the platlogo.

Bug: 27376882
Change-Id: Ie60600018204f48593975b947d6fc10f4dd8a69f
This commit is contained in:
Dan Sandler
2016-06-27 22:02:12 -04:00
parent 04f8cc2bb3
commit 4b7e415803
4 changed files with 23 additions and 12 deletions

View File

@@ -54,6 +54,7 @@ import android.widget.ImageView;
public class PlatLogoActivity extends Activity { public class PlatLogoActivity extends Activity {
public static final boolean REVEAL_THE_NAME = false; public static final boolean REVEAL_THE_NAME = false;
public static final boolean FINISH = false;
FrameLayout mLayout; FrameLayout mLayout;
int mTapCount; int mTapCount;
@@ -138,7 +139,7 @@ public class PlatLogoActivity extends Activity {
} catch (ActivityNotFoundException ex) { } catch (ActivityNotFoundException ex) {
Log.e("PlatLogoActivity", "No more eggs."); Log.e("PlatLogoActivity", "No more eggs.");
} }
finish(); if (FINISH) finish();
} }
}); });
return true; return true;

View File

@@ -19,10 +19,10 @@ Copyright (C) 2016 The Android Open Source Project
android:viewportWidth="48.0" android:viewportWidth="48.0"
android:viewportHeight="48.0"> android:viewportHeight="48.0">
<path <path
android:fillColor="#FF7E5BBF" android:fillColor="#FFc7d4b6"
android:pathData="M32.0,12.5l0.0,28.0l12.0,-5.0l0.0,-28.0z"/> android:pathData="M32.0,12.5l0.0,28.0l12.0,-5.0l0.0,-28.0z"/>
<path <path
android:fillColor="#FF7E5BBF" android:fillColor="#FFfbd3cb"
android:pathData="M4.0,40.5l12.0,-5.0l0.0,-11.0l-12.0,-12.0z"/> android:pathData="M4.0,40.5l12.0,-5.0l0.0,-11.0l-12.0,-12.0z"/>
<path <path
android:fillColor="#40000000" android:fillColor="#40000000"
@@ -31,7 +31,7 @@ Copyright (C) 2016 The Android Open Source Project
android:fillColor="#40000000" android:fillColor="#40000000"
android:pathData="M4.0,12.5l12.0,12.0l0.0,4.0z"/> android:pathData="M4.0,12.5l12.0,12.0l0.0,4.0z"/>
<path <path
android:fillColor="#FF55C4F5" android:fillColor="#FFe0e0d6"
android:pathData="M32.0,23.5l-16.0,-16.0l-12.0,5.0l0.0,0.0l12.0,12.0l16.0,16.0l12.0,-5.0l0.0,0.0z"/> android:pathData="M32.0,23.5l-16.0,-16.0l-12.0,5.0l0.0,0.0l12.0,12.0l16.0,16.0l12.0,-5.0l0.0,0.0z"/>
</vector> </vector>

View File

@@ -14,15 +14,15 @@ Copyright (C) 2016 The Android Open Source Project
limitations under the License. limitations under the License.
--> -->
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp" android:width="512dp"
android:height="48dp" android:height="512dp"
android:viewportWidth="48.0" android:viewportWidth="48.0"
android:viewportHeight="48.0"> android:viewportHeight="48.0">
<path <path
android:fillColor="#00796B" android:fillColor="#FF7E5BBF"
android:pathData="M32.0,12.5l0.0,28.0l12.0,-5.0l0.0,-28.0z"/> android:pathData="M32.0,12.5l0.0,28.0l12.0,-5.0l0.0,-28.0z"/>
<path <path
android:fillColor="#00796B" android:fillColor="#FF7E5BBF"
android:pathData="M4.0,40.5l12.0,-5.0l0.0,-11.0l-12.0,-12.0z"/> android:pathData="M4.0,40.5l12.0,-5.0l0.0,-11.0l-12.0,-12.0z"/>
<path <path
android:fillColor="#40000000" android:fillColor="#40000000"
@@ -31,8 +31,7 @@ Copyright (C) 2016 The Android Open Source Project
android:fillColor="#40000000" android:fillColor="#40000000"
android:pathData="M4.0,12.5l12.0,12.0l0.0,4.0z"/> android:pathData="M4.0,12.5l12.0,12.0l0.0,4.0z"/>
<path <path
android:fillColor="#4DB6AC" android:fillColor="#FF55C4F5"
android:pathData="M32.0,23.5l-16.0,-16.0l-12.0,5.0l0.0,0.0l12.0,12.0l16.0,16.0l12.0,-5.0l0.0,0.0z"/> android:pathData="M32.0,23.5l-16.0,-16.0l-12.0,5.0l0.0,0.0l12.0,12.0l16.0,16.0l12.0,-5.0l0.0,0.0z"/>
</vector> </vector>

View File

@@ -18,8 +18,15 @@ import android.app.Activity;
import android.content.ComponentName; import android.content.ComponentName;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.util.Log; import android.util.Log;
import android.widget.Toast;
public class NekoActivationActivity extends Activity { public class NekoActivationActivity extends Activity {
private void toastUp(String s) {
Toast toast = Toast.makeText(this, s, Toast.LENGTH_SHORT);
toast.getView().setBackgroundDrawable(null);
toast.show();
}
@Override @Override
public void onStart() { public void onStart() {
super.onStart(); super.onStart();
@@ -30,12 +37,16 @@ public class NekoActivationActivity extends Activity {
if (NekoLand.DEBUG) { if (NekoLand.DEBUG) {
Log.v("Neko", "Disabling tile."); Log.v("Neko", "Disabling tile.");
} }
pm.setComponentEnabledSetting(cn, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0); pm.setComponentEnabledSetting(cn, PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP);
toastUp("\uD83D\uDEAB");
} else { } else {
if (NekoLand.DEBUG) { if (NekoLand.DEBUG) {
Log.v("Neko", "Enabling tile."); Log.v("Neko", "Enabling tile.");
} }
pm.setComponentEnabledSetting(cn, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 0); pm.setComponentEnabledSetting(cn, PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
PackageManager.DONT_KILL_APP);
toastUp("\uD83D\uDC31");
} }
finish(); finish();
} }