Trevelopment / MZD-AIO

Desktop app for AIO
https://mazdatweaks.com
Other
566 stars 83 forks source link

Carplay status bar icon missing with disclaimer tweak #20

Closed rusho closed 5 years ago

rusho commented 5 years ago

After installing disclaimer tweak on 70.00.021A EU, and connecting iPhone with CarPlay, there is no CarPlay icon in the status bar. That icon acts as a button and is a quick link to CarPlay from the MZD Connect screen, without it, I must go to Applications -> CarPlay if I want to get back to CarPlay

Going through the code, it appears that this piece is missing from systemApp.70.js in systemApp.prototype._StatusMenuMsgHandler function (in the original file on lines 821-826):

    // check if we should worry about speed restriction for carplay/androidauto icon
    //For car play/android auto app _setRemoteButtonIcon is called to display or hide car play/android auto icon in status bar
    if(appName === "carplay" || appName === "androidauto")
    {
        this._setRemoteUIButton(appName,!isDisabled);
    }
Trevelopment commented 5 years ago

Yes I found this too I am just finishing some things for the next AIO and this is one of the bug fixes. For now just add the snippet for yourself and it will fix the issue.