Loading core/java/com/android/internal/app/ResolverActivity.java +14 −2 Original line number Original line Diff line number Diff line Loading @@ -100,8 +100,20 @@ public class ResolverActivity extends AlertActivity implements AdapterView.OnIte @Override @Override protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) { onCreate(savedInstanceState, makeMyIntent(), // Use a specialized prompt when we're handling the 'Home' app startActivity() getResources().getText(com.android.internal.R.string.whichApplication), final int titleResource; final Intent intent = makeMyIntent(); final Set<String> categories = intent.getCategories(); if (Intent.ACTION_MAIN.equals(intent.getAction()) && categories != null && categories.size() == 1 && categories.contains(Intent.CATEGORY_HOME)) { titleResource = com.android.internal.R.string.whichHomeApplication; } else { titleResource = com.android.internal.R.string.whichApplication; } onCreate(savedInstanceState, intent, getResources().getText(titleResource), null, null, true); null, null, true); } } Loading core/res/res/values/strings.xml +2 −0 Original line number Original line Diff line number Diff line Loading @@ -3182,6 +3182,8 @@ <!-- Title of intent resolver dialog when selecting an application to run. --> <!-- Title of intent resolver dialog when selecting an application to run. --> <string name="whichApplication">Complete action using</string> <string name="whichApplication">Complete action using</string> <!-- Title of intent resolver dialog when selecting a HOME application to run. --> <string name="whichHomeApplication">Select a home app</string> <!-- Option to always use the selected application resolution in the future. See the "Complete action using" dialog title--> <!-- Option to always use the selected application resolution in the future. See the "Complete action using" dialog title--> <string name="alwaysUse">Use by default for this action.</string> <string name="alwaysUse">Use by default for this action.</string> <!-- Text displayed when the user selects the check box for setting default application. See the "Use by default for this action" check box. --> <!-- Text displayed when the user selects the check box for setting default application. See the "Use by default for this action" check box. --> Loading core/res/res/values/symbols.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -800,6 +800,7 @@ <java-symbol type="string" name="web_user_agent_target_content" /> <java-symbol type="string" name="web_user_agent_target_content" /> <java-symbol type="string" name="webpage_unresponsive" /> <java-symbol type="string" name="webpage_unresponsive" /> <java-symbol type="string" name="whichApplication" /> <java-symbol type="string" name="whichApplication" /> <java-symbol type="string" name="whichHomeApplication" /> <java-symbol type="string" name="wifi_available_sign_in" /> <java-symbol type="string" name="wifi_available_sign_in" /> <java-symbol type="string" name="network_available_sign_in" /> <java-symbol type="string" name="network_available_sign_in" /> <java-symbol type="string" name="network_available_sign_in_detailed" /> <java-symbol type="string" name="network_available_sign_in_detailed" /> Loading Loading
core/java/com/android/internal/app/ResolverActivity.java +14 −2 Original line number Original line Diff line number Diff line Loading @@ -100,8 +100,20 @@ public class ResolverActivity extends AlertActivity implements AdapterView.OnIte @Override @Override protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) { onCreate(savedInstanceState, makeMyIntent(), // Use a specialized prompt when we're handling the 'Home' app startActivity() getResources().getText(com.android.internal.R.string.whichApplication), final int titleResource; final Intent intent = makeMyIntent(); final Set<String> categories = intent.getCategories(); if (Intent.ACTION_MAIN.equals(intent.getAction()) && categories != null && categories.size() == 1 && categories.contains(Intent.CATEGORY_HOME)) { titleResource = com.android.internal.R.string.whichHomeApplication; } else { titleResource = com.android.internal.R.string.whichApplication; } onCreate(savedInstanceState, intent, getResources().getText(titleResource), null, null, true); null, null, true); } } Loading
core/res/res/values/strings.xml +2 −0 Original line number Original line Diff line number Diff line Loading @@ -3182,6 +3182,8 @@ <!-- Title of intent resolver dialog when selecting an application to run. --> <!-- Title of intent resolver dialog when selecting an application to run. --> <string name="whichApplication">Complete action using</string> <string name="whichApplication">Complete action using</string> <!-- Title of intent resolver dialog when selecting a HOME application to run. --> <string name="whichHomeApplication">Select a home app</string> <!-- Option to always use the selected application resolution in the future. See the "Complete action using" dialog title--> <!-- Option to always use the selected application resolution in the future. See the "Complete action using" dialog title--> <string name="alwaysUse">Use by default for this action.</string> <string name="alwaysUse">Use by default for this action.</string> <!-- Text displayed when the user selects the check box for setting default application. See the "Use by default for this action" check box. --> <!-- Text displayed when the user selects the check box for setting default application. See the "Use by default for this action" check box. --> Loading
core/res/res/values/symbols.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -800,6 +800,7 @@ <java-symbol type="string" name="web_user_agent_target_content" /> <java-symbol type="string" name="web_user_agent_target_content" /> <java-symbol type="string" name="webpage_unresponsive" /> <java-symbol type="string" name="webpage_unresponsive" /> <java-symbol type="string" name="whichApplication" /> <java-symbol type="string" name="whichApplication" /> <java-symbol type="string" name="whichHomeApplication" /> <java-symbol type="string" name="wifi_available_sign_in" /> <java-symbol type="string" name="wifi_available_sign_in" /> <java-symbol type="string" name="network_available_sign_in" /> <java-symbol type="string" name="network_available_sign_in" /> <java-symbol type="string" name="network_available_sign_in_detailed" /> <java-symbol type="string" name="network_available_sign_in_detailed" /> Loading