Browse Source

remove unneeded 2.x check

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 7 years ago
parent
commit
122e2c47ab
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/main/java/com/owncloud/android/ui/activity/Preferences.java

+ 1 - 4
src/main/java/com/owncloud/android/ui/activity/Preferences.java

@@ -789,11 +789,8 @@ public class Preferences extends PreferenceActivity
 
             // For adding content description tag to a title field in the action bar
             int actionBarTitleId = getResources().getIdentifier("action_bar_title", "id", "android");
-            View actionBarTitleView = window.getDecorView().findViewById(actionBarTitleId);
-            if (actionBarTitleView != null) {    // it's null in Android 2.x
-                window.getDecorView().findViewById(actionBarTitleId).
+            window.getDecorView().findViewById(actionBarTitleId).
                         setContentDescription(getString(R.string.actionbar_settings));
-            }
         }
     }