summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Partner.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-05-21 20:46:33 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-05-22 08:46:41 -0700
commitc6205603efe1f2987caf96504c87d720a25b5a94 (patch)
tree19a1c13def0784a3f3edc1e69aab87251820cbcf /src/com/android/launcher3/Partner.java
parent2805e639cdea6ae0051155611d122ed27556e658 (diff)
downloadandroid_packages_apps_Trebuchet-c6205603efe1f2987caf96504c87d720a25b5a94.tar.gz
android_packages_apps_Trebuchet-c6205603efe1f2987caf96504c87d720a25b5a94.tar.bz2
android_packages_apps_Trebuchet-c6205603efe1f2987caf96504c87d720a25b5a94.zip
Creating landscape and portrait device profiles at app initialization
Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
Diffstat (limited to 'src/com/android/launcher3/Partner.java')
-rw-r--r--src/com/android/launcher3/Partner.java30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/com/android/launcher3/Partner.java b/src/com/android/launcher3/Partner.java
index c9e837994..380078b26 100644
--- a/src/com/android/launcher3/Partner.java
+++ b/src/com/android/launcher3/Partner.java
@@ -47,8 +47,6 @@ public class Partner {
public static final String RES_REQUIRE_FIRST_RUN_FLOW = "requires_first_run_flow";
/** These resources are used to override the device profile */
- public static final String RES_GRID_AA_SHORT_EDGE_COUNT = "grid_aa_short_edge_count";
- public static final String RES_GRID_AA_LONG_EDGE_COUNT = "grid_aa_long_edge_count";
public static final String RES_GRID_NUM_ROWS = "grid_num_rows";
public static final String RES_GRID_NUM_COLUMNS = "grid_num_columns";
public static final String RES_GRID_ICON_SIZE_DP = "grid_icon_size_dp";
@@ -154,32 +152,4 @@ public class Partner {
inv.iconSize = iconSize;
}
}
-
- public void applyDeviceProfileOverrides(DeviceProfile dp) {
- int allAppsShortEdgeCount = -1;
- int allAppsLongEdgeCount = -1;
-
- try {
- int resId = getResources().getIdentifier(RES_GRID_AA_SHORT_EDGE_COUNT,
- "integer", getPackageName());
- if (resId > 0) {
- allAppsShortEdgeCount = getResources().getInteger(resId);
- }
-
- resId = getResources().getIdentifier(RES_GRID_AA_LONG_EDGE_COUNT,
- "integer", getPackageName());
- if (resId > 0) {
- allAppsLongEdgeCount = getResources().getInteger(resId);
- }
-
- } catch (Resources.NotFoundException ex) {
- Log.e(TAG, "Invalid Partner grid resource!", ex);
- return;
- }
-
- if (allAppsShortEdgeCount > 0 && allAppsLongEdgeCount > 0) {
- dp.allAppsShortEdgeCount = allAppsShortEdgeCount;
- dp.allAppsLongEdgeCount = allAppsLongEdgeCount;
- }
- }
}