背景:我们使用场景是不需要锁屏的,售后维护人员容易误触设置屏幕锁定,导致重启后黑屏,因此直接将建议栏取消。
修改前:
修改后:
修改记录:
--- a/packages/apps/Settings/src/com/android/settings/dashboard/DashboardAdapter.java
+++ b/packages/apps/Settings/src/com/android/settings/dashboard/DashboardAdapter.java
@@ -159,6 +159,7 @@ public class DashboardAdapter extends RecyclerView.Adapter<DashboardAdapter.Dash
hasConditions |= shouldShow;
countItem(mConditions.get(i), R.layout.condition_card, shouldShow, NS_CONDITION);
}
+ /*
boolean hasSuggestions = mSuggestions != null && mSuggestions.size() != 0;
countItem(null, R.layout.dashboard_spacer, hasConditions && hasSuggestions, NS_SPACER);
countItem(null, R.layout.suggestion_header, hasSuggestions, NS_SPACER);
@@ -171,6 +172,7 @@ public class DashboardAdapter extends RecyclerView.Adapter<DashboardAdapter.Dash
}
}
resetCount();
+ */
for (int i = 0; mCategories != null && i < mCategories.size(); i++) {
DashboardCategory category = mCategories.get(i);
countItem(category, R.layout.dashboard_category, mIsShowingAll, NS_ITEMS);