Merge "Fix constructors for SearchIndexableData and SearchIndexableResource"

This commit is contained in:
Fabrice Di Meglio
2014-04-11 22:19:22 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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;