Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2086954 authored by Songchun Fan's avatar Songchun Fan
Browse files

[pm/incremental] add @FloatRange in the new LauncherActivityInfo API

Addressing the comment in b/171804873

BUG: 171804873
Test: builds
Change-Id: Ie7980973572443007f9205535ab9da575d3ea97b
parent 976002b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
  }
+1 −1
Original line number Diff line number Diff line
@@ -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();
  }
+2 −1
Original line number Diff line number Diff line
@@ -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();
    }