Merge "Fix constructors for SearchIndexableData and SearchIndexableResource"
This commit is contained in:
committed by
Android (Google) Code Review
commit
296832e0e5
@@ -115,6 +115,7 @@ public abstract class SearchIndexableData {
|
||||
* Default constructor.
|
||||
*/
|
||||
public SearchIndexableData() {
|
||||
locale = Locale.getDefault();
|
||||
enabled = true;
|
||||
}
|
||||
|
||||
@@ -124,9 +125,8 @@ public abstract class SearchIndexableData {
|
||||
* @param ctx the Context
|
||||
*/
|
||||
public SearchIndexableData(Context ctx) {
|
||||
this();
|
||||
context = ctx;
|
||||
locale = Locale.getDefault();
|
||||
enabled = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -48,6 +48,7 @@ public class SearchIndexableResource extends SearchIndexableData {
|
||||
* @param iconResId the resource ID associated with the data.
|
||||
*/
|
||||
public SearchIndexableResource(int rank, int xmlResId, String className, int iconResId) {
|
||||
super();
|
||||
this.rank = rank;
|
||||
this.xmlResId = xmlResId;
|
||||
this.className = className;
|
||||
|
||||
Reference in New Issue
Block a user