Themes: Use default audibles when pkgName is empty

Fixes an issue where audibles would be "unknown" causing them to
not play when phone rings, notifications arive or an alarm goes off

Change-Id: If279ed7e88784c025999822da7ee3a1a51d63bbd
TICKET: CYNGNOS-2728
This commit is contained in:
d34d 2016-06-02 10:01:21 -07:00
parent af55f98056
commit ee069f8c81
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ public class ThemeManagerService extends CMSystemService {
private boolean updateAudible(String dirPath, String assetPath, int type, String pkgName) {
//Clear the dir
ThemeUtils.clearAudibles(mContext, dirPath);
if (pkgName.equals(SYSTEM_DEFAULT)) {
if (TextUtils.isEmpty(pkgName) || pkgName.equals(SYSTEM_DEFAULT)) {
if (!ThemeUtils.setDefaultAudible(mContext, type)) {
Log.e(TAG, "There was an error installing the default audio file");
return false;