Fixed
Status Update
Comments
uc...@google.com <uc...@google.com> #2
Thank you for suggesting this enhancement. We value the feedback from our community and hope to review your suggestion in an upcoming sprint.
es...@google.com <es...@google.com>
tn...@google.com <tn...@google.com> #3
This is now implemented for 4.2 (by Change-Id: I14715dc398885a6aaee82c754ce674a00e10917c). Error output example from unit test
src/test/pkg/test.kt:5: Error: @layout.test includes views not allowed in a RemoteView: DatePicker, androidx.appcompat.widget.AppCompatTextView [RemoteViewLayout]
val remoteView = RemoteViews(packageName, R.layout.test)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 errors, 0 warnings
lb...@gmail.com <lb...@gmail.com> #4
@3 Does it protect against XML tags alone, or also XML attributes that aren't supported ?
Description
final RemoteViews remoteView = new RemoteViews(packageName, R.layout.app_widget__layout);
And yet in the layout XML file, you used some class that isn't supported for RemoteViews, for example androidx.appcompat.widget.AppCompatTextView .
I sugest we should not let the app to be built,because we know that this won't work.