Sent initial data to telecomm on connection creation. (1/3)
Telecomm was not sending the initial state for new connections forcing the connection services to postpone when they set data on the connection which resulted in hacky code. This CL makes use of a ParcelableConnection to send the intial connection data. Change-Id: If571414aba19fa1bb282e30632431962b8366cf4
This commit is contained in:
@@ -18,6 +18,7 @@ package android.telecomm;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.res.Resources.NotFoundException;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Parcel;
|
||||
@@ -181,7 +182,7 @@ public class PhoneAccount implements Parcelable {
|
||||
}
|
||||
try {
|
||||
return packageContext.getResources().getDrawable(resId);
|
||||
} catch (MissingResourceException e) {
|
||||
} catch (NotFoundException|MissingResourceException e) {
|
||||
Log.e(this, e, "Cannot find icon %d in package %s",
|
||||
resId, mAccountHandle.getComponentName().getPackageName());
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user