diff options
author | Takanori Nakano <takanori.x.nakano@sonymobile.com> | 2016-12-02 18:32:59 +0900 |
---|---|---|
committer | Sanket Padawe <sanketpadawe@google.com> | 2017-05-30 11:59:55 -0700 |
commit | 48544354fe63697f909a76feae6544d1454e9ab9 (patch) | |
tree | b6b88efbf8df59b570d37ac21bb0040a78a47c7e /src/com/android/stk/StkLauncherActivity.java | |
parent | 93902eb0ae64a2e6bac9bc8545320c915638a944 (diff) | |
download | Stk-48544354fe63697f909a76feae6544d1454e9ab9.tar.gz |
Add action bar to display the option menu itemsandroid-vts-8.0_r2android-vts-8.0_r1oreo-dev
Some test cases in 3GPP TS 51.010-4 require End Session or Help option.
Refer to TC 27.22.4.2.1 Expected Sequence 1.4 (GET INKEY),
TC 27.22.4.9.1 Expected Sequence 1.4 (SELECT ITEM) and so on.
Bug: 33329277
Test: manual - confirmed that the options are available as expected.
Change-Id: I1016090d5ab0e0b878eee97d8a58bbeac360e0d1
Diffstat (limited to 'src/com/android/stk/StkLauncherActivity.java')
-rwxr-xr-x[-rw-r--r--] | src/com/android/stk/StkLauncherActivity.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/stk/StkLauncherActivity.java b/src/com/android/stk/StkLauncherActivity.java index 6c5b88c..a5271f6 100644..100755 --- a/src/com/android/stk/StkLauncherActivity.java +++ b/src/com/android/stk/StkLauncherActivity.java @@ -16,6 +16,7 @@ package com.android.stk; +import android.app.ActionBar; import android.app.ListActivity; import android.content.Context; import android.content.Intent; @@ -62,7 +63,11 @@ public class StkLauncherActivity extends ListActivity { mContext = getBaseContext(); mTm = (TelephonyManager) mContext.getSystemService( Context.TELEPHONY_SERVICE); - requestWindowFeature(Window.FEATURE_NO_TITLE); + + ActionBar actionBar = getActionBar(); + actionBar.setCustomView(R.layout.stk_title); + actionBar.setDisplayShowCustomEnabled(true); + setContentView(R.layout.stk_menu_list); mTitleTextView = (TextView) findViewById(R.id.title_text); mTitleIconView = (ImageView) findViewById(R.id.title_icon); |