diff --git a/res/drawable/bg_pixel_qsb_connector.xml b/res/drawable/bg_pixel_qsb_connector.xml new file mode 100644 index 0000000000..974a8df0a3 --- /dev/null +++ b/res/drawable/bg_pixel_qsb_connector.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/res/values/colors.xml b/res/values/colors.xml index 2c700aac19..ecab780e01 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -58,4 +58,5 @@ #fff2f2f2 #ffffffff + #66ffffff diff --git a/res/values/dimens.xml b/res/values/dimens.xml index d2b9219b6e..b2d2e399a0 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -224,4 +224,5 @@ 20.0dip 1.0dip 1.0dip + 20.0dip diff --git a/src/com/android/launcher3/pixel/QsbConnector.java b/src/com/android/launcher3/pixel/QsbConnector.java index 87cf498bd7..7e944a44a9 100644 --- a/src/com/android/launcher3/pixel/QsbConnector.java +++ b/src/com/android/launcher3/pixel/QsbConnector.java @@ -56,28 +56,7 @@ private void stopRevealAnimation() { } private void retrieveGoogleQsbBackground() { - Drawable drawable = null; - try { - final Context context = this.getContext(); - final Resources resourcesForApplication = context.getPackageManager().getResourcesForApplication("com.google.android.googlequicksearchbox"); - final int identifier = resourcesForApplication.getIdentifier("bg_pixel_qsb_connector", "drawable", "com.google.android.googlequicksearchbox"); - if (identifier == 0) { - return; - } - final Context context2 = this.getContext(); - try { - drawable = resourcesForApplication.getDrawable(identifier, context2.getTheme()); - if (drawable == null) { - this.setBackgroundResource(R.color.qsb_connector); - return; - } - } - catch (Exception ex) { - Log.d("QsbConnector", "Error loading connector background", ex); - } - } - catch (Exception ex3) {} - this.setBackground(drawable); + this.setBackground(getResources().getDrawable(R.drawable.bg_pixel_qsb_connector, getContext().getTheme())); } private void updateAlpha(final int m) {