Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_PackageInstaller
Commits
0156e7b2
Commit
0156e7b2
authored
10 years ago
by
Jeff Sharkey
Browse files
Options
Download
Email Patches
Plain Diff
PackageInstaller API refactoring.
Bug: 17008440 Change-Id: Ice56b712a96abecc3d908424d4595449927c2d3e
parent
3aeb5056
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/com/android/packageinstaller/PackageInstallerActivity.java
...om/android/packageinstaller/PackageInstallerActivity.java
+1
-2
src/com/android/packageinstaller/UninstallerActivity.java
src/com/android/packageinstaller/UninstallerActivity.java
+1
-0
No files found.
src/com/android/packageinstaller/PackageInstallerActivity.java
View file @
0156e7b2
...
...
@@ -26,7 +26,6 @@ import android.content.DialogInterface.OnCancelListener;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
import
android.content.pm.ApplicationInfo
;
import
android.content.pm.InstallSessionInfo
;
import
android.content.pm.ManifestDigest
;
import
android.content.pm.PackageInfo
;
import
android.content.pm.PackageInstaller
;
...
...
@@ -433,7 +432,7 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen
final
Intent
intent
=
getIntent
();
if
(
PackageInstaller
.
ACTION_CONFIRM_PERMISSIONS
.
equals
(
intent
.
getAction
()))
{
final
int
sessionId
=
intent
.
getIntExtra
(
PackageInstaller
.
EXTRA_SESSION_ID
,
-
1
);
final
InstallSessionInfo
info
=
mInstaller
.
getSessionInfo
(
sessionId
);
final
Package
Install
er
.
SessionInfo
info
=
mInstaller
.
getSessionInfo
(
sessionId
);
if
(
info
==
null
||
!
info
.
sealed
||
info
.
resolvedBaseCodePath
==
null
)
{
Log
.
w
(
TAG
,
"Session "
+
mSessionId
+
" in funky state; ignoring"
);
finish
();
...
...
This diff is collapsed.
Click to expand it.
src/com/android/packageinstaller/UninstallerActivity.java
View file @
0156e7b2
...
...
@@ -77,6 +77,7 @@ public class UninstallerActivity extends Activity implements OnClickListener {
.
setNeutralButton
(
getString
(
R
.
string
.
dlg_ok
),
new
DialogInterface
.
OnClickListener
()
{
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
dispatchAborted
();
setResult
(
Activity
.
RESULT_FIRST_USER
);
finish
();
}})
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment