Skip to content

Commit 0af26e5

Browse files
author
therealbluepandabear
committed
Fix warnings.
1 parent f091280 commit 0af26e5

4 files changed

Lines changed: 2 additions & 11 deletions

File tree

app/src/main/java/com/therealbluepandabear/pixapencil/activities/canvas/onoptionsitemselected/CanvasActivity+onExportOptionsItemSelected.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import android.view.LayoutInflater
66
import android.view.View
77
import android.view.ViewGroup
88
import android.widget.ScrollView
9-
import androidx.core.view.doOnNextLayout
109
import androidx.core.widget.doAfterTextChanged
1110
import com.google.android.material.dialog.MaterialAlertDialogBuilder
1211
import com.therealbluepandabear.pixapencil.R

app/src/main/java/com/therealbluepandabear/pixapencil/extensions/BitmapExtensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ fun Bitmap.drawTransparent() {
168168
val coordinates = Coordinates.staticSet(i_1, i_2)
169169

170170
if (i_1 % 2 == 0) {
171-
if ((i_1 % 2 == 0) && (i_2 % 2 == 0)) {
171+
if (i_2 % 2 == 0) {
172172
setPixel(coordinates, color)
173173
} else {
174174
setPixel(coordinates, Color.WHITE)
175175
}
176176
} else {
177-
if ((i_1 % 2 != 0) && (i_2 % 2 != 0)) {
177+
if (i_2 % 2 != 0) {
178178
setPixel(coordinates, color)
179179
} else {
180180
setPixel(coordinates, Color.WHITE)

app/src/main/res/mipmap-anydpi

Whitespace-only changes.

app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
<string name="generic_warning">警告</string>
88
<string name="generic_saved">已保存</string>
99
<string name="generic_switch">开关</string>
10-
<string name="generic_png" translatable="false">PNG</string>
11-
<string name="generic_jpg" translatable="false">JPG</string>
12-
<string name="generic_webp" translatable="false">WEBP</string>
13-
<string name="generic_tif" translatable="false">TIF</string>
14-
<string name="generic_bmp" translatable="false">BMP</string>
1510
<string name="generic_darken_mode_tooltip">夜间模式</string>
1611
<string name="generic_lighten_mode_tooltip">日间模式</string>
1712

@@ -30,7 +25,6 @@
3025
<string name="projectDetailsAlertBox_colors">颜色</string>
3126

3227
<!--Other strings-->
33-
<string name="recentCreationsLayout_subtitle" translatable="false">%1$dx%2$d</string>
3428

3529
<!--Fragment strings-->
3630
<string name="fragmentFilters_color_filter">滤色器</string>
@@ -89,8 +83,6 @@
8983
<string name="fragmentHexadecimalColorPicker_failed_to_copy_to_clipboard">复制文本剪贴板失败</string>
9084

9185
<string name="fragmentColorPicker_tab_color_picker">取色盘</string>
92-
<string name="fragmentColorPicker_tab_rgb" translatable="false">RGB</string>
93-
<string name="fragmentColorPicker_tab_hex" translatable="false">Hex</string>
9486

9587
<string name="fragmentAppInfo_created_by_text">Created by <a href="https://github.com/therealbluepandabear">thebluepandabear</a>.</string>
9688
<string name="fragmentAppInfo_description_text">

0 commit comments

Comments
 (0)