Merge "fix 3185231: Dragging app to info button doesn't work"
This commit is contained in:
committed by
Android (Google) Code Review
commit
bc52e4c04f
@@ -550,7 +550,6 @@
|
||||
InstalledAppDetails. -->
|
||||
<activity android:name=".applications.InstalledAppDetailsTop"
|
||||
android:label="@string/application_info_label"
|
||||
android:theme="@android:style/Theme.Holo.DialogWhenLarge"
|
||||
android:exported="true">
|
||||
</activity>
|
||||
<activity-alias android:name=".applications.InstalledAppDetails"
|
||||
|
@@ -408,10 +408,11 @@ public class InstalledAppDetails extends Fragment
|
||||
if (mMoveInProgress) {
|
||||
return true;
|
||||
}
|
||||
|
||||
String packageName = getArguments().getString(ARG_PACKAGE_NAME);
|
||||
final Bundle args = getArguments();
|
||||
String packageName = (args != null) ? args.getString(ARG_PACKAGE_NAME) : null;
|
||||
if (packageName == null) {
|
||||
Intent intent = (Intent)getArguments().getParcelable("intent");
|
||||
Intent intent = (args == null) ?
|
||||
getActivity().getIntent() : (Intent) args.getParcelable("intent");
|
||||
if (intent != null) {
|
||||
packageName = intent.getData().getSchemeSpecificPart();
|
||||
}
|
||||
|
@@ -8,6 +8,7 @@ public class InstalledAppDetailsTop extends PreferenceActivity {
|
||||
public Intent getIntent() {
|
||||
Intent modIntent = new Intent(super.getIntent());
|
||||
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, InstalledAppDetails.class.getName());
|
||||
modIntent.putExtra(EXTRA_NO_HEADERS, true);
|
||||
return modIntent;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user