Open shubhadeep-foodhub opened 7 months ago
Awesome, first Android bug (I expect loads...) I will look at this
Yes, it has lots of bugs which is causing frequent app crashes. waiting for a stable release.
List view items only trigger events if they are browsable items:
const template = new ListTemplate({
sections: [
{
header: 'HEADER',
items: [
{
text: 'Item 1',
browsable: true,
},
],
},
],
title: 'Test Android Auto',
async onItemSelect(e) {
console.log("test clicked", e);
},
});
CarPlay.setRootTemplate(template);
List view items only trigger events if they are browsable items:
const template = new ListTemplate({ sections: [ { header: 'HEADER', items: [ { text: 'Item 1', browsable: true, }, ], }, ], title: 'Test Android Auto', async onItemSelect(e) { console.log("test clicked", e); }, }); CarPlay.setRootTemplate(template);
It works. Thanks @tanquetav
When testing the list ListTemplate, the onItemSelect function is not working.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should fire a onItemSelect event
Android Auto (please complete the following information):