OSDN Git Service

Eleven: Do not uppercase unnecessarily
authorZhao Wei Liew <zhaoweiliew@gmail.com>
Thu, 29 Sep 2016 09:28:32 +0000 (17:28 +0800)
committerZhao Wei Liew <zhaoweiliew@gmail.com>
Thu, 29 Sep 2016 09:33:29 +0000 (17:33 +0800)
Please do not yell in my face.

Change-Id: I8f1aa19ad8239aa093e6af78df18bdd4387f84a1

src/com/cyanogenmod/eleven/ui/activities/BaseActivity.java
src/com/cyanogenmod/eleven/ui/activities/SearchActivity.java

index 74172b4..4aca569 100644 (file)
@@ -138,7 +138,7 @@ public abstract class BaseActivity extends FragmentActivity implements ServiceCo
         mToolBar = (Toolbar) findViewById(R.id.toolbar);
         setActionBar(mToolBar);
 
-        getActionBar().setTitle(getString(R.string.app_name).toUpperCase());
+        setActionBarTitle(getString(R.string.app_name));
 
         // set the background on the root view
         getWindow().getDecorView().getRootView().setBackgroundColor(
@@ -292,7 +292,7 @@ public abstract class BaseActivity extends FragmentActivity implements ServiceCo
 
     public void setActionBarTitle(String title) {
         ActionBar actionBar = getActionBar();
-        actionBar.setTitle(title.toUpperCase());
+        actionBar.setTitle(title);
     }
 
     public void setActionBarAlpha(int alpha) {
index 129b1f7..3bfbb6f 100644 (file)
@@ -331,7 +331,7 @@ public class SearchActivity extends FragmentActivity implements
                     resourceId = R.string.search_title_songs;
                     break;
             }
-            actionBar.setTitle(getString(resourceId, mFilterString).toUpperCase());
+            actionBar.setTitle(getString(resourceId, mFilterString));
             actionBar.setDisplayHomeAsUpEnabled(true);
 
             // Set the prefix
@@ -420,7 +420,7 @@ public class SearchActivity extends FragmentActivity implements
         MenuItem searchItem = menu.findItem(R.id.menu_search);
         mSearchView = (SearchView)searchItem.getActionView();
         mSearchView.setOnQueryTextListener(this);
-        mSearchView.setQueryHint(getString(R.string.searchHint).toUpperCase());
+        mSearchView.setQueryHint(getString(R.string.searchHint));
 
         // The SearchView has no way for you to customize or get access to the search icon in a
         // normal fashion, so we need to manually look for the icon and change the