Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01635b05 authored by Mohamed Abdalkader's avatar Mohamed Abdalkader Committed by Android (Google) Code Review
Browse files

Merge "UI polish/tweaks for blocked numbers UI." into nyc-dev

parents 3ebdc296 5a002ca9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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. -->
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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">
+2 −4
Original line number Diff line number Diff line
@@ -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"
@@ -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
+8 −0
Original line number Diff line number Diff line
@@ -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;

@@ -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();