Update for shortcuts
Change-Id: If28d540fd9e300b9c26d5cb6869be3d475124e9e
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 9.7 KiB  | 
@@ -28,6 +28,7 @@
 | 
			
		||||
        android:id="@android:id/icon"
 | 
			
		||||
        android:layout_width="@dimen/shortcut_size"
 | 
			
		||||
        android:layout_height="@dimen/shortcut_size"
 | 
			
		||||
        android:tint="@color/icon_accent"
 | 
			
		||||
        android:padding="12dp"
 | 
			
		||||
        android:scaleType="fitXY" />
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -100,4 +100,7 @@
 | 
			
		||||
 | 
			
		||||
    <color name="zen_rule_name_warning">@color/system_warning_color</color>
 | 
			
		||||
 | 
			
		||||
    <!-- Accent color that matches the settings launcher icon -->
 | 
			
		||||
    <color name="icon_accent">#ffabffec</color>
 | 
			
		||||
 | 
			
		||||
</resources>
 | 
			
		||||
 
 | 
			
		||||
@@ -73,7 +73,7 @@ public class CreateShortcut extends LauncherActivity {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private Bitmap createIcon(int resource) {
 | 
			
		||||
        Context context = new ContextThemeWrapper(this, android.R.style.Theme_Material_Light);
 | 
			
		||||
        Context context = new ContextThemeWrapper(this, android.R.style.Theme_Material);
 | 
			
		||||
        View view = LayoutInflater.from(context).inflate(R.layout.shortcut_badge, null);
 | 
			
		||||
        ((ImageView) view.findViewById(android.R.id.icon)).setImageResource(resource);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user