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. -->
|
InstalledAppDetails. -->
|
||||||
<activity android:name=".applications.InstalledAppDetailsTop"
|
<activity android:name=".applications.InstalledAppDetailsTop"
|
||||||
android:label="@string/application_info_label"
|
android:label="@string/application_info_label"
|
||||||
android:theme="@android:style/Theme.Holo.DialogWhenLarge"
|
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
</activity>
|
</activity>
|
||||||
<activity-alias android:name=".applications.InstalledAppDetails"
|
<activity-alias android:name=".applications.InstalledAppDetails"
|
||||||
|
@@ -408,10 +408,11 @@ public class InstalledAppDetails extends Fragment
|
|||||||
if (mMoveInProgress) {
|
if (mMoveInProgress) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
final Bundle args = getArguments();
|
||||||
String packageName = getArguments().getString(ARG_PACKAGE_NAME);
|
String packageName = (args != null) ? args.getString(ARG_PACKAGE_NAME) : null;
|
||||||
if (packageName == null) {
|
if (packageName == null) {
|
||||||
Intent intent = (Intent)getArguments().getParcelable("intent");
|
Intent intent = (args == null) ?
|
||||||
|
getActivity().getIntent() : (Intent) args.getParcelable("intent");
|
||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
packageName = intent.getData().getSchemeSpecificPart();
|
packageName = intent.getData().getSchemeSpecificPart();
|
||||||
}
|
}
|
||||||
|
@@ -8,6 +8,7 @@ public class InstalledAppDetailsTop extends PreferenceActivity {
|
|||||||
public Intent getIntent() {
|
public Intent getIntent() {
|
||||||
Intent modIntent = new Intent(super.getIntent());
|
Intent modIntent = new Intent(super.getIntent());
|
||||||
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, InstalledAppDetails.class.getName());
|
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, InstalledAppDetails.class.getName());
|
||||||
|
modIntent.putExtra(EXTRA_NO_HEADERS, true);
|
||||||
return modIntent;
|
return modIntent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user