Loading res/values/strings.xml +2 −2 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ <!-- Blocked numbers --> <string name="blocked_numbers">Blocked numbers</string> <!-- Text shown at the beginning of the blocked numbers screen to explain what the screen is about. --> <string name="blocked_numbers_msg">Calls and texts from numbers on this list are blocked.</string> <string name="blocked_numbers_msg">You won\'t receive calls or texts from blocked numbers.</string> <!-- Button to add a blocked number. --> <string name="block_number">Add a number</string> <!-- Body of dialog to confirm unblocking a number. --> Loading @@ -129,7 +129,7 @@ <!-- Body of dialog to block a number. --> <string name="add_blocked_dialog_body">Block calls and texts from</string> <!-- Hint shown in the edit text box for adding a blocked number --> <string name="add_blocked_number_hint">Number or email</string> <string name="add_blocked_number_hint">Phone number</string> <!-- Button to block a number. --> <string name="block_button">Block</string> <!-- String shown to users unable to manage blocked numbers because they are not owners of the Loading res/values/styles.xml +1 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ <item name="android:colorPrimaryDark">@color/dialer_settings_color_dark</item> <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item> <item name="android:windowContentOverlay">@null</item> <item name="android:colorAccent">@color/theme_color</item> </style> <style name="TelecomDialerSettingsActionBarStyle" parent="android:Widget.Material.ActionBar"> Loading res/xml/add_blocked_number_dialog.xml +2 −4 Original line number Diff line number Diff line Loading @@ -21,9 +21,7 @@ android:layout_height="match_parent" android:orientation="vertical" android:paddingLeft="@dimen/blocked_numbers_extra_large_padding" android:paddingRight="@dimen/blocked_numbers_extra_large_padding" android:focusable="true" android:focusableInTouchMode="true"> android:paddingRight="@dimen/blocked_numbers_extra_large_padding"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" Loading @@ -38,5 +36,5 @@ android:paddingTop="@dimen/blocked_numbers_large_padding" android:paddingBottom="@dimen/blocked_numbers_large_padding" android:hint="@string/add_blocked_number_hint" android:inputType="text" /> android:inputType="phone" /> </LinearLayout> No newline at end of file src/com/android/server/telecom/settings/BlockedNumbersActivity.java +8 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,8 @@ import android.text.TextWatcher; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.WindowManager; import android.view.inputmethod.InputMethodManager; import android.widget.*; import com.android.server.telecom.R; Loading Loading @@ -159,6 +161,12 @@ public class BlockedNumbersActivity extends ListActivity mBlockButton = ((AlertDialog) dialog) .getButton(AlertDialog.BUTTON_POSITIVE); mBlockButton.setEnabled(false); // show keyboard InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT); } }); dialog.show(); Loading Loading
res/values/strings.xml +2 −2 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ <!-- Blocked numbers --> <string name="blocked_numbers">Blocked numbers</string> <!-- Text shown at the beginning of the blocked numbers screen to explain what the screen is about. --> <string name="blocked_numbers_msg">Calls and texts from numbers on this list are blocked.</string> <string name="blocked_numbers_msg">You won\'t receive calls or texts from blocked numbers.</string> <!-- Button to add a blocked number. --> <string name="block_number">Add a number</string> <!-- Body of dialog to confirm unblocking a number. --> Loading @@ -129,7 +129,7 @@ <!-- Body of dialog to block a number. --> <string name="add_blocked_dialog_body">Block calls and texts from</string> <!-- Hint shown in the edit text box for adding a blocked number --> <string name="add_blocked_number_hint">Number or email</string> <string name="add_blocked_number_hint">Phone number</string> <!-- Button to block a number. --> <string name="block_button">Block</string> <!-- String shown to users unable to manage blocked numbers because they are not owners of the Loading
res/values/styles.xml +1 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ <item name="android:colorPrimaryDark">@color/dialer_settings_color_dark</item> <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item> <item name="android:windowContentOverlay">@null</item> <item name="android:colorAccent">@color/theme_color</item> </style> <style name="TelecomDialerSettingsActionBarStyle" parent="android:Widget.Material.ActionBar"> Loading
res/xml/add_blocked_number_dialog.xml +2 −4 Original line number Diff line number Diff line Loading @@ -21,9 +21,7 @@ android:layout_height="match_parent" android:orientation="vertical" android:paddingLeft="@dimen/blocked_numbers_extra_large_padding" android:paddingRight="@dimen/blocked_numbers_extra_large_padding" android:focusable="true" android:focusableInTouchMode="true"> android:paddingRight="@dimen/blocked_numbers_extra_large_padding"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" Loading @@ -38,5 +36,5 @@ android:paddingTop="@dimen/blocked_numbers_large_padding" android:paddingBottom="@dimen/blocked_numbers_large_padding" android:hint="@string/add_blocked_number_hint" android:inputType="text" /> android:inputType="phone" /> </LinearLayout> No newline at end of file
src/com/android/server/telecom/settings/BlockedNumbersActivity.java +8 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,8 @@ import android.text.TextWatcher; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.WindowManager; import android.view.inputmethod.InputMethodManager; import android.widget.*; import com.android.server.telecom.R; Loading Loading @@ -159,6 +161,12 @@ public class BlockedNumbersActivity extends ListActivity mBlockButton = ((AlertDialog) dialog) .getButton(AlertDialog.BUTTON_POSITIVE); mBlockButton.setEnabled(false); // show keyboard InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT); } }); dialog.show(); Loading