am aad5ef44: Fix issues with how the gestures pad was hidden when leaving Home.
Merge commit 'aad5ef44c665fc4ce143a61c009dc04be3ab0437' * commit 'aad5ef44c665fc4ce143a61c009dc04be3ab0437': Fix issues with how the gestures pad was hidden when leaving Home.
This commit is contained in:
commit
c1dd33cadc
|
@ -46,7 +46,7 @@
|
|||
android:shadowColor="#FF000000"
|
||||
android:shadowRadius="2.0"
|
||||
|
||||
android:drawablePadding="6dip"
|
||||
android:drawablePadding="8dip"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
|
@ -62,7 +62,7 @@
|
|||
android:shadowColor="#FF000000"
|
||||
android:shadowRadius="2.0"
|
||||
|
||||
android:drawablePadding="6dip"
|
||||
android:drawablePadding="8dip"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
|
|
|
@ -230,6 +230,7 @@ public final class Launcher extends Activity implements View.OnClickListener, On
|
|||
private Launcher.GesturesProcessor mGesturesProcessor;
|
||||
private Gesture mCurrentGesture;
|
||||
private GesturesAction mGesturesAction;
|
||||
private boolean mHideGesturesPanel;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
@ -337,6 +338,8 @@ public final class Launcher extends Activity implements View.OnClickListener, On
|
|||
|
||||
@Override
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
mWaitingForResult = false;
|
||||
|
||||
// The pattern used here is that a user PICKs a specific application,
|
||||
// which, depending on the target, might need to CREATE the actual target.
|
||||
|
||||
|
@ -389,7 +392,6 @@ public final class Launcher extends Activity implements View.OnClickListener, On
|
|||
mAppWidgetHost.deleteAppWidgetId(appWidgetId);
|
||||
}
|
||||
}
|
||||
mWaitingForResult = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -417,7 +419,10 @@ public final class Launcher extends Activity implements View.OnClickListener, On
|
|||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
hideGesturesPanel();
|
||||
if (mHideGesturesPanel) {
|
||||
mHideGesturesPanel = false;
|
||||
hideGesturesPanel();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1689,6 +1694,7 @@ public final class Launcher extends Activity implements View.OnClickListener, On
|
|||
}
|
||||
|
||||
void startActivitySafely(Intent intent) {
|
||||
mHideGesturesPanel = true;
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
try {
|
||||
startActivity(intent);
|
||||
|
|
Loading…
Reference in New Issue