Loading core/java/com/android/internal/app/ChooserActivity.java +14 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ public class ChooserActivity extends ResolverActivity { if (mServiceConnections.isEmpty()) { mChooserHandler.removeMessages(CHOOSER_TARGET_SERVICE_WATCHDOG_TIMEOUT); sendVoiceChoicesIfNeeded(); mChooserListAdapter.setShowServiceTargets(true); } break; Loading @@ -138,6 +139,7 @@ public class ChooserActivity extends ResolverActivity { } unbindRemainingServices(); sendVoiceChoicesIfNeeded(); mChooserListAdapter.setShowServiceTargets(true); break; default: Loading Loading @@ -766,6 +768,7 @@ public class ChooserActivity extends ResolverActivity { private final List<ChooserTargetInfo> mServiceTargets = new ArrayList<>(); private final List<TargetInfo> mCallerTargets = new ArrayList<>(); private boolean mShowServiceTargets; private float mLateFee = 1.f; Loading Loading @@ -866,6 +869,9 @@ public class ChooserActivity extends ResolverActivity { } public int getServiceTargetCount() { if (!mShowServiceTargets) { return 0; } return Math.min(mServiceTargets.size(), MAX_SERVICE_TARGETS); } Loading Loading @@ -955,6 +961,14 @@ public class ChooserActivity extends ResolverActivity { notifyDataSetChanged(); } /** * Set to true to reveal all service targets at once. */ public void setShowServiceTargets(boolean show) { mShowServiceTargets = show; notifyDataSetChanged(); } private void insertServiceTarget(ChooserTargetInfo chooserTargetInfo) { final float newScore = chooserTargetInfo.getModifiedScore(); for (int i = 0, N = mServiceTargets.size(); i < N; i++) { Loading Loading
core/java/com/android/internal/app/ChooserActivity.java +14 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ public class ChooserActivity extends ResolverActivity { if (mServiceConnections.isEmpty()) { mChooserHandler.removeMessages(CHOOSER_TARGET_SERVICE_WATCHDOG_TIMEOUT); sendVoiceChoicesIfNeeded(); mChooserListAdapter.setShowServiceTargets(true); } break; Loading @@ -138,6 +139,7 @@ public class ChooserActivity extends ResolverActivity { } unbindRemainingServices(); sendVoiceChoicesIfNeeded(); mChooserListAdapter.setShowServiceTargets(true); break; default: Loading Loading @@ -766,6 +768,7 @@ public class ChooserActivity extends ResolverActivity { private final List<ChooserTargetInfo> mServiceTargets = new ArrayList<>(); private final List<TargetInfo> mCallerTargets = new ArrayList<>(); private boolean mShowServiceTargets; private float mLateFee = 1.f; Loading Loading @@ -866,6 +869,9 @@ public class ChooserActivity extends ResolverActivity { } public int getServiceTargetCount() { if (!mShowServiceTargets) { return 0; } return Math.min(mServiceTargets.size(), MAX_SERVICE_TARGETS); } Loading Loading @@ -955,6 +961,14 @@ public class ChooserActivity extends ResolverActivity { notifyDataSetChanged(); } /** * Set to true to reveal all service targets at once. */ public void setShowServiceTargets(boolean show) { mShowServiceTargets = show; notifyDataSetChanged(); } private void insertServiceTarget(ChooserTargetInfo chooserTargetInfo) { final float newScore = chooserTargetInfo.getModifiedScore(); for (int i = 0, N = mServiceTargets.size(); i < N; i++) { Loading