Panagiotis Triantafyllou

crash and ui fixes

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.5.4r5'
PUBLISH_VERSION = '4.5.5.4r6'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -1593,17 +1593,26 @@ public enum Warply {
String urlAnalytics = WarplyProperty.getBaseUrl(mContext) + WarpConstants.WARPLY_ASYNC + WarpConstants.WARPLY_ANALYTICS + WarplyProperty.getAppUuid(mContext) + "/";
WarplyJsonArrayRequest requestAnalytics = new WarplyJsonArrayRequest(method, urlAnalytics, tempAnalytics, vt, vt);
requestAnalytics.setTag(tag);
if(mRequestQueue == null)
mRequestQueue = Volley.newRequestQueue(mContext);
mRequestQueue.add(requestAnalytics);
}
if (tempDeviceInfo != null && tempDeviceInfo.length() > 0) {
String urlDeviceInfo = WarplyProperty.getBaseUrl(mContext) + WarpConstants.WARPLY_ASYNC + WarpConstants.WARPLY_DEVICE_INFO + WarplyProperty.getAppUuid(mContext) + "/";
WarplyJsonArrayRequest requestDeviceInfo = new WarplyJsonArrayRequest(method, urlDeviceInfo, tempDeviceInfo, vt, vt);
requestDeviceInfo.setTag(tag);
if(mRequestQueue == null)
mRequestQueue = Volley.newRequestQueue(mContext);
mRequestQueue.add(requestDeviceInfo);
}
if (tempOther != null && tempOther.length() > 0) {
WarplyJsonArrayRequest request = new WarplyJsonArrayRequest(method, url, tempOther, vt, vt);
request.setTag(tag);
if(mRequestQueue == null)
mRequestQueue = Volley.newRequestQueue(mContext);
mRequestQueue.add(request);
}
}
......
......@@ -124,6 +124,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe
})
.subscribe();
} else {
mRecyclerCoupons.setVisibility(View.GONE);
mTvEmptyCoupons.setVisibility(View.VISIBLE);
}
}
......
......@@ -121,7 +121,8 @@ public class ActiveUnifiedCouponsActivity extends Activity implements View.OnCli
})
.subscribe();
} else {
mTvEmptyUnifiedCoupons.setVisibility(View.GONE);
mRecyclerUnifiedCoupons.setVisibility(View.GONE);
mTvEmptyUnifiedCoupons.setVisibility(View.VISIBLE);
}
}
......
......@@ -49,7 +49,7 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"
......@@ -59,9 +59,7 @@
android:id="@+id/ll_first_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="24dp"
android:background="@drawable/ic_background_line"
android:orientation="horizontal"
android:paddingVertical="24dp"
android:paddingHorizontal="16dp">
<com.google.android.material.imageview.ShapeableImageView
......@@ -79,7 +77,7 @@
<LinearLayout
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
......@@ -168,7 +166,7 @@
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
......