Using java_style enum generation for proto
This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
This commit is contained in:
1 parent
fa94c79ca6
commit
6c46a6d324
16 files changed
+174
-230
No files matched your search
@@ -29,7 +29,7 @@ import com.android.launcher3.BubbleTextView;
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -184,7 +184,7 @@ public class AllAppsRecyclerView extends BaseRecyclerView {
|
||||
|
||||
public int getContainerType(View v) {
|
||||
if (mApps.hasFilter()) {
|
||||
return LauncherLogProto.SEARCHRESULT;
|
||||
return ContainerType.SEARCHRESULT;
|
||||
} else {
|
||||
if (v instanceof BubbleTextView) {
|
||||
BubbleTextView icon = (BubbleTextView) v;
|
||||
@@ -193,11 +193,11 @@ public class AllAppsRecyclerView extends BaseRecyclerView {
|
||||
List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems();
|
||||
AlphabeticalAppsList.AdapterItem item = items.get(position);
|
||||
if (item.viewType == AllAppsGridAdapter.VIEW_TYPE_PREDICTION_ICON) {
|
||||
return LauncherLogProto.PREDICTION;
|
||||
return ContainerType.PREDICTION;
|
||||
}
|
||||
}
|
||||
}
|
||||
return LauncherLogProto.ALLAPPS;
|
||||
return ContainerType.ALLAPPS;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user