Merge "Porting old code for min alpha for items in recents" into jb-mr1-dev

This commit is contained in:
Michael Jurka
2012-09-05 03:40:14 -07:00
committed by Android (Google) Code Review
4 changed files with 8 additions and 13 deletions

View File

@@ -29,5 +29,8 @@
<!-- Whether recents thumbnails should stretch in both x and y to fill their
ImageView -->
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
<!-- Min alpha % that recent items will fade to while being dismissed -->
<integer name="config_recent_item_min_alpha">0</integer>
</resources>

View File

@@ -78,5 +78,8 @@
<integer name="navigation_bar_deadzone_decay">333</integer>
<bool name="config_dead_zone_flash">false</bool>
<!-- Min alpha % that recent items will fade to while being dismissed -->
<integer name="config_recent_item_min_alpha">3</integer>
</resources>

View File

@@ -136,6 +136,8 @@ public class RecentsActivity extends Activity {
mRecentsPanel.setOnTouchListener(new TouchOutsideListener(mRecentsPanel));
mRecentsPanel.setRecentTasksLoader(recentTasksLoader);
recentTasksLoader.setRecentsPanel(mRecentsPanel, mRecentsPanel);
mRecentsPanel.setMinSwipeAlpha(
getResources().getInteger(R.integer.config_recent_item_min_alpha) / 100f);
handleIntent(getIntent());
mIntentFilter = new IntentFilter();

View File

@@ -510,19 +510,6 @@ public class PhoneStatusBar extends BaseStatusBar {
return lp;
}
/*
protected void updateRecentsPanel() {
super.updateRecentsPanel(R.layout.status_bar_recent_panel);
// Make .03 alpha the minimum so you always see the item a bit-- slightly below
// .03, the item disappears entirely (as if alpha = 0) and that discontinuity looks
// a bit jarring
mRecentsPanel.setMinSwipeAlpha(0.03f);
if (mNavigationBarView != null) {
mNavigationBarView.getRecentsButton().setOnTouchListener(mRecentsPanel);
}
}
*/
@Override
protected void updateSearchPanel() {
super.updateSearchPanel();