Showing
6 changed files
with
23 additions
and
13 deletions
| ... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
| 8 | <option name="distributionType" value="DEFAULT_WRAPPED" /> | 8 | <option name="distributionType" value="DEFAULT_WRAPPED" /> |
| 9 | <option name="externalProjectPath" value="$PROJECT_DIR$" /> | 9 | <option name="externalProjectPath" value="$PROJECT_DIR$" /> |
| 10 | <option name="gradleHome" value="$PROJECT_DIR$/../../../../../../gradle-6.6.1" /> | 10 | <option name="gradleHome" value="$PROJECT_DIR$/../../../../../../gradle-6.6.1" /> |
| 11 | + <option name="gradleJvm" value="11" /> | ||
| 11 | <option name="modules"> | 12 | <option name="modules"> |
| 12 | <set> | 13 | <set> |
| 13 | <option value="$PROJECT_DIR$" /> | 14 | <option value="$PROJECT_DIR$" /> | ... | ... |
| ... | @@ -184,7 +184,7 @@ | ... | @@ -184,7 +184,7 @@ |
| 184 | </map> | 184 | </map> |
| 185 | </option> | 185 | </option> |
| 186 | </component> | 186 | </component> |
| 187 | - <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK"> | 187 | + <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK"> |
| 188 | <output url="file://$PROJECT_DIR$/build/classes" /> | 188 | <output url="file://$PROJECT_DIR$/build/classes" /> |
| 189 | </component> | 189 | </component> |
| 190 | <component name="ProjectType"> | 190 | <component name="ProjectType"> | ... | ... |
| ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
| 2 | 2 | ||
| 3 | ext { | 3 | ext { |
| 4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
| 5 | - PUBLISH_VERSION = '4.5.4.6rc56' | 5 | + PUBLISH_VERSION = '4.5.4.6rc58' |
| 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
| 7 | } | 7 | } |
| 8 | 8 | ... | ... |
| ... | @@ -101,6 +101,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -101,6 +101,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
| 101 | private ExpandableLayout mElGifts; | 101 | private ExpandableLayout mElGifts; |
| 102 | private boolean mIsStayCollapsed = true; | 102 | private boolean mIsStayCollapsed = true; |
| 103 | private CardView mClExp; | 103 | private CardView mClExp; |
| 104 | + private boolean mDfyPressed = false; | ||
| 104 | 105 | ||
| 105 | // =========================================================== | 106 | // =========================================================== |
| 106 | // Methods for/from SuperClass/Interfaces | 107 | // Methods for/from SuperClass/Interfaces |
| ... | @@ -204,6 +205,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -204,6 +205,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
| 204 | mSecondsHandler.postDelayed(this, 1000); | 205 | mSecondsHandler.postDelayed(this, 1000); |
| 205 | } | 206 | } |
| 206 | }); | 207 | }); |
| 208 | + mDfyPressed = false; | ||
| 207 | } | 209 | } |
| 208 | 210 | ||
| 209 | @Override | 211 | @Override |
| ... | @@ -290,13 +292,16 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -290,13 +292,16 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
| 290 | return; | 292 | return; |
| 291 | } | 293 | } |
| 292 | if (view.getId() == R.id.cl_mygifts) { | 294 | if (view.getId() == R.id.cl_mygifts) { |
| 293 | - WarplyAnalyticsManager.logTrackersEvent(this, "click", ("LoyaltyWalletScreen") | 295 | + if (!mDfyPressed) { |
| 294 | - .concat(":") | 296 | + WarplyAnalyticsManager.logTrackersEvent(this, "click", ("LoyaltyWalletScreen") |
| 295 | - .concat("ActiveDealsBanner")); | 297 | + .concat(":") |
| 296 | - | 298 | + .concat("ActiveDealsBanner")); |
| 297 | - ActiveDFYCouponEventModel activeCouponEventModel = new ActiveDFYCouponEventModel(); | 299 | + |
| 298 | - activeCouponEventModel.setPressed(true); | 300 | + ActiveDFYCouponEventModel activeCouponEventModel = new ActiveDFYCouponEventModel(); |
| 299 | - EventBus.getDefault().post(new WarplyEventBusManager(activeCouponEventModel)); | 301 | + activeCouponEventModel.setPressed(true); |
| 302 | + EventBus.getDefault().post(new WarplyEventBusManager(activeCouponEventModel)); | ||
| 303 | + mDfyPressed = true; | ||
| 304 | + } | ||
| 300 | } | 305 | } |
| 301 | } | 306 | } |
| 302 | 307 | ||
| ... | @@ -589,9 +594,9 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -589,9 +594,9 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
| 589 | 594 | ||
| 590 | mScActiveCodes.setVisibility(View.VISIBLE); | 595 | mScActiveCodes.setVisibility(View.VISIBLE); |
| 591 | mLlActiveCodesView.setVisibility(View.VISIBLE); | 596 | mLlActiveCodesView.setVisibility(View.VISIBLE); |
| 592 | - mLlDeals.setVisibility(View.VISIBLE); | ||
| 593 | } | 597 | } |
| 594 | // mTvActiveCode.setText(codes); | 598 | // mTvActiveCode.setText(codes); |
| 599 | + mLlDeals.setVisibility(View.VISIBLE); | ||
| 595 | } else { | 600 | } else { |
| 596 | mLlDeals.setVisibility(View.GONE); | 601 | mLlDeals.setVisibility(View.GONE); |
| 597 | } | 602 | } | ... | ... |
| ... | @@ -8,6 +8,7 @@ import android.net.Uri; | ... | @@ -8,6 +8,7 @@ import android.net.Uri; |
| 8 | 8 | ||
| 9 | import androidx.annotation.NonNull; | 9 | import androidx.annotation.NonNull; |
| 10 | import androidx.annotation.Nullable; | 10 | import androidx.annotation.Nullable; |
| 11 | +import androidx.appcompat.app.AppCompatDelegate; | ||
| 11 | 12 | ||
| 12 | import io.github.inflationx.calligraphy3.CalligraphyConfig; | 13 | import io.github.inflationx.calligraphy3.CalligraphyConfig; |
| 13 | import io.github.inflationx.calligraphy3.CalligraphyInterceptor; | 14 | import io.github.inflationx.calligraphy3.CalligraphyInterceptor; |
| ... | @@ -22,6 +23,7 @@ public class WarplyProvider extends ContentProvider { | ... | @@ -22,6 +23,7 @@ public class WarplyProvider extends ContentProvider { |
| 22 | 23 | ||
| 23 | @Override | 24 | @Override |
| 24 | public boolean onCreate() { | 25 | public boolean onCreate() { |
| 26 | + AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); | ||
| 25 | ViewPump.init(ViewPump.builder() | 27 | ViewPump.init(ViewPump.builder() |
| 26 | .addInterceptor(new CalligraphyInterceptor( | 28 | .addInterceptor(new CalligraphyInterceptor( |
| 27 | new CalligraphyConfig.Builder() | 29 | new CalligraphyConfig.Builder() | ... | ... |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | -<resources> | 2 | +<resources xmlns:tools="http://schemas.android.com/tools"> |
| 3 | 3 | ||
| 4 | <style name="AppCompatAlertDialogStyle" parent="Theme.AppCompat.Light.Dialog.Alert"> | 4 | <style name="AppCompatAlertDialogStyle" parent="Theme.AppCompat.Light.Dialog.Alert"> |
| 5 | <item name="android:layout_gravity">right</item> | 5 | <item name="android:layout_gravity">right</item> |
| ... | @@ -27,16 +27,18 @@ | ... | @@ -27,16 +27,18 @@ |
| 27 | <item name="android:windowMinWidthMinor">90%</item> | 27 | <item name="android:windowMinWidthMinor">90%</item> |
| 28 | </style> | 28 | </style> |
| 29 | 29 | ||
| 30 | - <style name="SDKAppTheme" parent="Theme.AppCompat.Light"> | 30 | + <style name="SDKAppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"> |
| 31 | <item name="android:statusBarColor">@android:color/white</item> | 31 | <item name="android:statusBarColor">@android:color/white</item> |
| 32 | <item name="android:windowLightStatusBar">true</item> | 32 | <item name="android:windowLightStatusBar">true</item> |
| 33 | + <item name="android:forceDarkAllowed" tools:targetApi="q">false</item> | ||
| 33 | </style> | 34 | </style> |
| 34 | 35 | ||
| 35 | - <style name="GFYAppTheme" parent="Theme.AppCompat.Light"> | 36 | + <style name="GFYAppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"> |
| 36 | <item name="android:statusBarColor">@android:color/white</item> | 37 | <item name="android:statusBarColor">@android:color/white</item> |
| 37 | <item name="android:windowLightStatusBar">true</item> | 38 | <item name="android:windowLightStatusBar">true</item> |
| 38 | <item name="windowActionBar">false</item> | 39 | <item name="windowActionBar">false</item> |
| 39 | <item name="windowNoTitle">true</item> | 40 | <item name="windowNoTitle">true</item> |
| 41 | + <item name="android:forceDarkAllowed" tools:targetApi="q">false</item> | ||
| 40 | </style> | 42 | </style> |
| 41 | 43 | ||
| 42 | <style name="ShapeAppearanceProfileImage" parent=""> | 44 | <style name="ShapeAppearanceProfileImage" parent=""> | ... | ... |
-
Please register or login to post a comment