Merge "Sharesheet - Disable expansion" into rvc-dev am: dc9a555126 am: 2606c5f859 am: f0f70c9434
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11820086 Change-Id: I1c771ad6dc7f2a13a8073093f3d38de33513b471
This commit is contained in:
@@ -3592,10 +3592,9 @@ public class ChooserActivity extends ResolverActivity implements
|
||||
* Only expand direct share area if there is a minimum number of targets.
|
||||
*/
|
||||
private boolean canExpandDirectShare() {
|
||||
int orientation = getResources().getConfiguration().orientation;
|
||||
return mChooserListAdapter.getNumServiceTargetsForExpand() > getMaxTargetsPerRow()
|
||||
&& orientation == Configuration.ORIENTATION_PORTRAIT
|
||||
&& !isInMultiWindowMode();
|
||||
// Do not enable until we have confirmed more apps are using sharing shortcuts
|
||||
// Check git history for enablement logic
|
||||
return false;
|
||||
}
|
||||
|
||||
public ChooserListAdapter getListAdapter() {
|
||||
|
||||
Reference in New Issue
Block a user