Fix missing grid for devices that upgrade from R
Fixes: 178435615 Test: TODO Change-Id: I9894b88485daf5b641b4674a5abff05e0f53138b
This commit is contained in:
parent
f1db62cc98
commit
0455d146a1
|
@ -141,7 +141,7 @@
|
|||
TODO: Add proper permissions
|
||||
-->
|
||||
<provider
|
||||
android:name="com.android.launcher3.graphics.GridOptionsProvider"
|
||||
android:name="com.android.launcher3.graphics.GridCustomizationsProvider"
|
||||
android:authorities="${packageName}.grid_control"
|
||||
android:exported="true" />
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ import android.view.animation.Interpolator;
|
|||
import androidx.core.os.BuildCompat;
|
||||
|
||||
import com.android.launcher3.dragndrop.FolderAdaptiveIcon;
|
||||
import com.android.launcher3.graphics.GridOptionsProvider;
|
||||
import com.android.launcher3.graphics.GridCustomizationsProvider;
|
||||
import com.android.launcher3.graphics.TintedDrawableSpan;
|
||||
import com.android.launcher3.icons.IconProvider;
|
||||
import com.android.launcher3.icons.LauncherIcons;
|
||||
|
@ -520,7 +520,7 @@ public final class Utilities {
|
|||
public static boolean isGridOptionsEnabled(Context context) {
|
||||
return isComponentEnabled(context.getPackageManager(),
|
||||
context.getPackageName(),
|
||||
GridOptionsProvider.class.getName());
|
||||
GridCustomizationsProvider.class.getName());
|
||||
}
|
||||
|
||||
private static boolean isComponentEnabled(PackageManager pm, String pkgName, String clsName) {
|
||||
|
|
|
@ -40,9 +40,9 @@ import java.util.List;
|
|||
* /default_grid: Call update to set the current grid, with values
|
||||
* name: name of the grid to apply
|
||||
*/
|
||||
public class GridOptionsProvider extends ContentProvider {
|
||||
public class GridCustomizationsProvider extends ContentProvider {
|
||||
|
||||
private static final String TAG = "GridOptionsProvider";
|
||||
private static final String TAG = "GridCustomizationsProvider";
|
||||
|
||||
private static final String KEY_NAME = "name";
|
||||
private static final String KEY_ROWS = "rows";
|
Loading…
Reference in New Issue