Fix crash in Settings from uninstall
am: 6e2e8e17cf
* commit '6e2e8e17cfea09548067baa8b361dbc31dce385c':
Fix crash in Settings from uninstall
This commit is contained in:
@@ -704,6 +704,10 @@ public class InstalledAppDetails extends AppInfoBase
|
|||||||
* @see android.view.View.OnClickListener#onClick(android.view.View)
|
* @see android.view.View.OnClickListener#onClick(android.view.View)
|
||||||
*/
|
*/
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
if (mAppEntry == null) {
|
||||||
|
setIntentAndFinish(true, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
String packageName = mAppEntry.info.packageName;
|
String packageName = mAppEntry.info.packageName;
|
||||||
if(v == mUninstallButton) {
|
if(v == mUninstallButton) {
|
||||||
if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
|
if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
|
||||||
|
Reference in New Issue
Block a user