Skip to content

Commit

Permalink
Addresses Obsolete SDK_INT version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkocer committed Jun 29, 2022
1 parent d1eeb1e commit 9988ff8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.wordpress.android.ui.notifications.services;

import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Context;
Expand All @@ -20,7 +19,6 @@ protected void attachBaseContext(Context newBase) {
super.attachBaseContext(LocaleManager.setLocale(newBase));
}

@TargetApi(22)
@Override
public boolean onStartJob(JobParameters params) {
String noteId = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.wordpress.android.util.analytics.service;

import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.os.Bundle;
Expand All @@ -19,7 +18,6 @@
* https://developer.android.com/guide/components/broadcasts.html#receiving_broadcasts
* https://developer.android.com/guide/components/broadcasts#effects-on-process-state
*/
@TargetApi(21)
public class InstallationReferrerJobService extends JobService implements
InstallationReferrerServiceLogic.ServiceCompletionListener {
@Override
Expand Down
3 changes: 1 addition & 2 deletions WordPress/src/main/res/layout/activity_log_list_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
android:scrollIndicators="none"
android:visibility="gone"
app:layout_scrollFlags="noScroll"
android:scrollbars="none"
tools:targetApi="m">
android:scrollbars="none">

<LinearLayout
android:layout_width="wrap_content"
Expand Down
2 changes: 1 addition & 1 deletion WordPress/src/main/res/values-night/styles_zendesk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<item name="toolbarNavigationButtonStyle">
@style/Widget.AppCompat.Toolbar.Button.Navigation
</item>
<item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:navigationBarColor">@android:color/black</item>
</style>
</resources>
12 changes: 6 additions & 6 deletions libs/editor/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
<style name="FormatBarButtonTablet" parent="FormatBarButton">
<item name="android:layout_marginRight">@dimen/format_bar_button_margin_tablet</item>
<item name="android:layout_marginLeft">@dimen/format_bar_button_margin_tablet</item>
<item name="android:layout_marginStart" tools:targetApi="jelly_bean_mr1">@dimen/format_bar_button_margin_tablet</item>
<item name="android:layout_marginEnd" tools:targetApi="jelly_bean_mr1">@dimen/format_bar_button_margin_tablet</item>
<item name="android:layout_marginStart">@dimen/format_bar_button_margin_tablet</item>
<item name="android:layout_marginEnd">@dimen/format_bar_button_margin_tablet</item>
</style>

<style name="FormatBarHtmlButton" parent="FormatBarButton">
<item name="android:layout_marginLeft">@dimen/format_bar_html_button_left_margin</item>
<item name="android:layout_marginStart" tools:targetApi="jelly_bean_mr1">@dimen/format_bar_html_button_left_margin</item>
<item name="android:layout_marginStart">@dimen/format_bar_html_button_left_margin</item>
</style>

<style name="Divider">
Expand All @@ -34,15 +34,15 @@
<style name="FormatBarTabletGroup">
<item name="android:layout_marginLeft">@dimen/format_bar_button_group_tablet</item>
<item name="android:layout_marginRight">@dimen/format_bar_button_group_tablet</item>
<item name="android:layout_marginStart" tools:targetApi="jelly_bean_mr1">@dimen/format_bar_button_group_tablet</item>
<item name="android:layout_marginEnd" tools:targetApi="jelly_bean_mr1">@dimen/format_bar_button_group_tablet</item>
<item name="android:layout_marginStart">@dimen/format_bar_button_group_tablet</item>
<item name="android:layout_marginEnd">@dimen/format_bar_button_group_tablet</item>
</style>

<style name="ImageOptionsDialogLabel">
<item name="android:textColor">@color/image_options_label</item>
<item name="android:textStyle">bold</item>
<item name="android:paddingLeft">@dimen/image_settings_dialog_label_indent</item>
<item name="android:paddingStart" tools:targetApi="jelly_bean_mr1">@dimen/image_settings_dialog_label_indent</item>
<item name="android:paddingStart">@dimen/image_settings_dialog_label_indent</item>
<item name="android:layout_marginBottom">@dimen/image_settings_dialog_label_margin_bottom</item>
</style>

Expand Down

0 comments on commit 9988ff8

Please sign in to comment.