[pm/incremental] add @FloatRange in the new LauncherActivityInfo API
Addressing the comment in b/171804873 BUG: 171804873 Test: builds Change-Id: Ie7980973572443007f9205535ab9da575d3ea97b
This commit is contained in:
@@ -11744,7 +11744,7 @@ package android.content.pm {
|
||||
method public long getFirstInstallTime();
|
||||
method public android.graphics.drawable.Drawable getIcon(int);
|
||||
method public CharSequence getLabel();
|
||||
method public float getLoadingProgress();
|
||||
method @FloatRange(from=0.0, to=1.0) public float getLoadingProgress();
|
||||
method public String getName();
|
||||
method public android.os.UserHandle getUser();
|
||||
}
|
||||
|
||||
@@ -11744,7 +11744,7 @@ package android.content.pm {
|
||||
method public long getFirstInstallTime();
|
||||
method public android.graphics.drawable.Drawable getIcon(int);
|
||||
method public CharSequence getLabel();
|
||||
method public float getLoadingProgress();
|
||||
method @FloatRange(from=0.0, to=1.0) public float getLoadingProgress();
|
||||
method public String getName();
|
||||
method public android.os.UserHandle getUser();
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import android.annotation.FloatRange;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
@@ -86,7 +87,7 @@ public class LauncherActivityInfo {
|
||||
/**
|
||||
* @return Package loading progress, range between [0, 1].
|
||||
*/
|
||||
public float getLoadingProgress() {
|
||||
public @FloatRange(from = 0.0, to = 1.0) float getLoadingProgress() {
|
||||
return mInternal.getIncrementalStatesInfo().getProgress();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user