2015-04-08 19:01:34 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2015 The Android Open Source Project
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
2015-05-21 13:04:53 -07:00
|
|
|
package com.android.launcher3.model;
|
2015-04-08 19:01:34 -07:00
|
|
|
|
2016-12-15 17:40:07 -08:00
|
|
|
import com.android.launcher3.ItemInfoWithIcon;
|
2015-04-08 19:01:34 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents a {@link Package} in the widget tray section.
|
|
|
|
|
*/
|
2016-12-15 17:40:07 -08:00
|
|
|
public class PackageItemInfo extends ItemInfoWithIcon {
|
2015-04-08 19:01:34 -07:00
|
|
|
|
2015-06-04 11:37:46 -07:00
|
|
|
/**
|
2016-12-15 17:40:07 -08:00
|
|
|
* Package name of the {@link PackageItemInfo}.
|
2015-06-04 11:37:46 -07:00
|
|
|
*/
|
2015-04-11 15:44:32 -07:00
|
|
|
public String packageName;
|
2015-04-08 19:01:34 -07:00
|
|
|
|
2017-01-03 16:52:43 -08:00
|
|
|
public PackageItemInfo(String packageName) {
|
2015-04-11 15:44:32 -07:00
|
|
|
this.packageName = packageName;
|
2015-04-08 19:01:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2016-09-01 10:55:20 -07:00
|
|
|
protected String dumpProperties() {
|
|
|
|
|
return super.dumpProperties() + " packageName=" + packageName;
|
2015-04-08 19:01:34 -07:00
|
|
|
}
|
|
|
|
|
}
|