mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2025-12-24 23:57:53 -05:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dfbc0b5e6 | ||
|
|
0a9b292d12 | ||
|
|
e7d4228c0c | ||
|
|
a1836e5433 | ||
|
|
52e0496e36 | ||
|
|
50e6e28277 | ||
|
|
4cf770837b | ||
|
|
38fb9f7fb8 | ||
|
|
7a6232c8b6 | ||
|
|
13e62f3b38 | ||
|
|
d5590d37e3 | ||
|
|
fd21806456 | ||
|
|
34bbfffdaf | ||
|
|
56bbb4a786 | ||
|
|
2b92d200ca | ||
|
|
d4154e51d3 | ||
|
|
7d69e63dc9 |
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## v2.18.2 - 112
|
||||
|
||||
- Make the possibility to set a custom header more visible
|
||||
|
||||
## v2.18.1 - 111
|
||||
|
||||
- Arabic language support
|
||||
|
||||
@@ -18,8 +18,8 @@ android {
|
||||
applicationId "me.hackerchick.catima"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 31
|
||||
versionCode 111
|
||||
versionName "2.18.1"
|
||||
versionCode 112
|
||||
versionName "2.18.2"
|
||||
|
||||
vectorDrawables.useSupportLibrary true
|
||||
multiDexEnabled true
|
||||
@@ -90,7 +90,7 @@ dependencies {
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.6'
|
||||
|
||||
// Splash Screen
|
||||
implementation 'androidx.core:core-splashscreen:1.0.0-rc01'
|
||||
implementation 'androidx.core:core-splashscreen:1.0.0'
|
||||
|
||||
// Third-party
|
||||
implementation 'com.journeyapps:zxing-android-embedded:4.3.0@aar'
|
||||
|
||||
@@ -117,6 +117,7 @@ public class LoyaltyCardEditActivity extends CatimaAppCompatActivity {
|
||||
TabLayout tabs;
|
||||
|
||||
ImageView thumbnail;
|
||||
ImageView thumbnailEditIcon;
|
||||
EditText storeFieldEdit;
|
||||
EditText noteFieldEdit;
|
||||
ChipGroup groupsChips;
|
||||
@@ -315,6 +316,7 @@ public class LoyaltyCardEditActivity extends CatimaAppCompatActivity {
|
||||
|
||||
tabs = findViewById(R.id.tabs);
|
||||
thumbnail = findViewById(R.id.thumbnail);
|
||||
thumbnailEditIcon = findViewById(R.id.thumbnailEditIcon);
|
||||
storeFieldEdit = findViewById(R.id.storeNameEdit);
|
||||
noteFieldEdit = findViewById(R.id.noteEdit);
|
||||
groupsChips = findViewById(R.id.groupChips);
|
||||
@@ -862,12 +864,6 @@ public class LoyaltyCardEditActivity extends CatimaAppCompatActivity {
|
||||
updateTempState(LoyaltyCardField.headerColor, Utils.getRandomHeaderColor(this));
|
||||
}
|
||||
|
||||
// It can't be null because we set it in updateTempState but SpotBugs insists it can be
|
||||
// NP_NULL_ON_SOME_PATH: Possible null pointer dereference
|
||||
if (tempLoyaltyCard.headerColor != null) {
|
||||
thumbnail.setOnClickListener(new ChooseCardImage());
|
||||
}
|
||||
|
||||
// Update from intent
|
||||
if (barcodeType != null) {
|
||||
try {
|
||||
@@ -914,13 +910,28 @@ public class LoyaltyCardEditActivity extends CatimaAppCompatActivity {
|
||||
|
||||
generateIcon(storeFieldEdit.getText().toString());
|
||||
|
||||
// It can't be null because we set it in updateTempState but SpotBugs insists it can be
|
||||
// NP_NULL_ON_SOME_PATH: Possible null pointer dereference and
|
||||
// NP_NULL_PARAM_DEREF: Method call passes null for non-null parameter
|
||||
Integer headerColor = tempLoyaltyCard.headerColor;
|
||||
if (headerColor != null) {
|
||||
thumbnail.setOnClickListener(new ChooseCardImage());
|
||||
thumbnailEditIcon.setBackgroundColor(Utils.needsDarkForeground(headerColor) ? Color.BLACK : Color.WHITE);
|
||||
thumbnailEditIcon.setColorFilter(Utils.needsDarkForeground(headerColor) ? Color.WHITE : Color.BLACK);
|
||||
}
|
||||
|
||||
onResuming = false;
|
||||
}
|
||||
|
||||
protected void setColorFromIcon() {
|
||||
Object icon = thumbnail.getTag();
|
||||
if (icon != null && (icon instanceof Bitmap)) {
|
||||
updateTempState(LoyaltyCardField.headerColor, Utils.getHeaderColorFromImage((Bitmap) icon, tempLoyaltyCard.headerColor != null ? tempLoyaltyCard.headerColor : R.attr.colorPrimary));
|
||||
int headerColor = Utils.getHeaderColorFromImage((Bitmap) icon, tempLoyaltyCard.headerColor != null ? tempLoyaltyCard.headerColor : R.attr.colorPrimary);
|
||||
|
||||
updateTempState(LoyaltyCardField.headerColor, headerColor);
|
||||
|
||||
thumbnailEditIcon.setBackgroundColor(Utils.needsDarkForeground(headerColor) ? Color.BLACK : Color.WHITE);
|
||||
thumbnailEditIcon.setColorFilter(Utils.needsDarkForeground(headerColor) ? Color.WHITE : Color.BLACK);
|
||||
} else {
|
||||
Log.d("setColorFromIcon", "attempting header color change from icon but icon does not exist");
|
||||
}
|
||||
@@ -1102,6 +1113,9 @@ public class LoyaltyCardEditActivity extends CatimaAppCompatActivity {
|
||||
public void onColorSelected(int dialogId, int color) {
|
||||
updateTempState(LoyaltyCardField.headerColor, color);
|
||||
|
||||
thumbnailEditIcon.setBackgroundColor(Utils.needsDarkForeground(color) ? Color.BLACK : Color.WHITE);
|
||||
thumbnailEditIcon.setColorFilter(Utils.needsDarkForeground(color) ? Color.WHITE : Color.BLACK);
|
||||
|
||||
// Unset image if set
|
||||
thumbnail.setTag(null);
|
||||
|
||||
|
||||
@@ -82,6 +82,17 @@
|
||||
android:contentDescription="@string/thumbnailDescription"
|
||||
android:src="@mipmap/ic_launcher"/>
|
||||
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/thumbnailEditIcon"
|
||||
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Material3.FloatingActionButton"
|
||||
android:layout_width="@dimen/cardThumbnailEditOverlaySize"
|
||||
android:layout_height="@dimen/cardThumbnailEditOverlaySize"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="4dp"
|
||||
app:contentPadding="4dp"
|
||||
android:alpha="0.8"
|
||||
android:src="@drawable/ic_mode_edit_white_24dp"/>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
|
||||
@@ -250,4 +250,11 @@
|
||||
<string name="unarchived">Картка розархівована</string>
|
||||
<string name="archiveList">Архів</string>
|
||||
<string name="noUnarchivedCardsMessage">Немає не архівованих карток</string>
|
||||
<plurals name="groupCardCountWithArchived">
|
||||
<item quantity="one"><xliff:g>%1$d</xliff:g> карту (<xliff:g id="archivedCount">%2$d</xliff:g> заархівовано)</item>
|
||||
<item quantity="few"><xliff:g>%1$d</xliff:g> карти (<xliff:g id="archivedCount">%2$d</xliff:g> заархівовано)</item>
|
||||
<item quantity="many"><xliff:g>%1$d</xliff:g> карт (<xliff:g id="archivedCount">%2$d</xliff:g> заархівовано)</item>
|
||||
<item quantity="other"><xliff:g>%1$d</xliff:g> карт (<xliff:g id="archivedCount">%2$d</xliff:g> заархівовано)</item>
|
||||
</plurals>
|
||||
<string name="failedLaunchingPhotoPicker">Підтримувану програму галереї не знайдено</string>
|
||||
</resources>
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
<dimen name="cardThumbnailSize">46dp</dimen>
|
||||
<dimen name="cardThumbnailSizeLarge">200dp</dimen>
|
||||
<dimen name="cardThumbnailEditOverlaySize">21dp</dimen>
|
||||
|
||||
<dimen name="activity_margin_small">8dp</dimen>
|
||||
<dimen name="activity_margin">16dp</dimen>
|
||||
|
||||
1
fastlane/metadata/android/en-US/changelogs/112.txt
Normal file
1
fastlane/metadata/android/en-US/changelogs/112.txt
Normal file
@@ -0,0 +1 @@
|
||||
- Make the possibility to set a custom header more visible
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
2
fastlane/metadata/android/it-IT/changelogs/104.txt
Normal file
2
fastlane/metadata/android/it-IT/changelogs/104.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
- Salva lo stato espanso dei dettagli della carta
|
||||
- Minori correzioni dell'interfaccia
|
||||
2
fastlane/metadata/android/it-IT/changelogs/105.txt
Normal file
2
fastlane/metadata/android/it-IT/changelogs/105.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
- Sistemato il blocco grigio che appariva nei valori del codice a barre non validi
|
||||
- Sistemato l'importazione da Stocard
|
||||
@@ -1,2 +1,5 @@
|
||||
- Özel temanın ana ekrana doğru şekilde uygulanmaması düzeltildi
|
||||
- Gruba genel bakışta arşivlenen kart sayısını görüntüle
|
||||
- Seçilen kartların gösterimi iyileştirildi
|
||||
- Son kullanma tarihi veya bakiyesi olan kartlar için RTL düzenlerinde kart görünümünden çıkarken oluşan çökme düzeltildi
|
||||
- RTL düzenlerinde kart görünümündeki geri okunun yanlış yönü göstermesi düzeltildi
|
||||
|
||||
2
fastlane/metadata/android/uk/changelogs/104.txt
Normal file
2
fastlane/metadata/android/uk/changelogs/104.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
- Тепер якщо деталі карти розгорнуто, то це налаштування зберігається
|
||||
- Трохи підправили інтерфейс
|
||||
5
fastlane/metadata/android/uk/changelogs/108.txt
Normal file
5
fastlane/metadata/android/uk/changelogs/108.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
- Можна дублювати карти
|
||||
- Унеможливили встановлення закінчення терміну дії карти до 1970 (тоді карт взагалі не було)
|
||||
- Архівування карт
|
||||
- Видалення карти тепер в меню редагування
|
||||
- Іконку фіксування "розгортки" екрану прибрано, бо є спеціальна опція для цього
|
||||
1
fastlane/metadata/android/uk/changelogs/109.txt
Normal file
1
fastlane/metadata/android/uk/changelogs/109.txt
Normal file
@@ -0,0 +1 @@
|
||||
- Виправили хибний колір на кнопці "не має штрих-коду"
|
||||
1
fastlane/metadata/android/uk/changelogs/12.txt
Normal file
1
fastlane/metadata/android/uk/changelogs/12.txt
Normal file
@@ -0,0 +1 @@
|
||||
- Обертання екрану в інтро-інструкції більше не є причиною "вильотів" програми.
|
||||
2
fastlane/metadata/android/uk/changelogs/15.txt
Normal file
2
fastlane/metadata/android/uk/changelogs/15.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
- На Android 7.1+ тепер часто використовувані карти можна перетворити на ярлики
|
||||
- А пристрої із старішими версіями Android тепер мають віджет, що функціонує аналогічно до ярликів
|
||||
2
fastlane/metadata/android/uk/changelogs/17.txt
Normal file
2
fastlane/metadata/android/uk/changelogs/17.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
- Ярлики тепер встановлюються із головного екрану чи лаунчера
|
||||
- Відповідно немає потреби у створенні ярликів із самої програми разом із дозволом на це, отже ми їх прибрали
|
||||
2
fastlane/metadata/android/uk/changelogs/18.txt
Normal file
2
fastlane/metadata/android/uk/changelogs/18.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
- Імпорт із файлової системи на Android SDK 24+ не є перешкодою для подальшої роботи програми
|
||||
- Нова іконка та кольорова схема
|
||||
Reference in New Issue
Block a user