am 3de2d914: am 5ec46e9e: am 30a8045d: am 1d98fbf2: Merge "Update API naming to follow style guide." into lmp-dev
* commit '3de2d9144e7f88a20e62c07999aa94789f4ad2e6': Update API naming to follow style guide.
This commit is contained in:
@@ -82,7 +82,7 @@ public class PackageInstaller {
|
||||
* may surface actions such as pause, resume, or cancel.
|
||||
* <p>
|
||||
* This should always be scoped to the installer package that owns the
|
||||
* session. Clients should use {@link SessionInfo#getDetailsIntent()} to
|
||||
* session. Clients should use {@link SessionInfo#createDetailsIntent()} to
|
||||
* build this intent correctly.
|
||||
* <p>
|
||||
* In some cases, a matching Activity may not exist, so ensure you safeguard
|
||||
@@ -1174,7 +1174,7 @@ public class PackageInstaller {
|
||||
*
|
||||
* @see PackageInstaller#ACTION_SESSION_DETAILS
|
||||
*/
|
||||
public @Nullable Intent getDetailsIntent() {
|
||||
public @Nullable Intent createDetailsIntent() {
|
||||
final Intent intent = new Intent(PackageInstaller.ACTION_SESSION_DETAILS);
|
||||
intent.putExtra(PackageInstaller.EXTRA_SESSION_ID, sessionId);
|
||||
intent.setPackage(installerPackageName);
|
||||
@@ -1182,6 +1182,12 @@ public class PackageInstaller {
|
||||
return intent;
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@Deprecated
|
||||
public @Nullable Intent getDetailsIntent() {
|
||||
return createDetailsIntent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user