Panagiotis Triantafyllou

new keys

1 package ly.warp.sdk.activities; 1 package ly.warp.sdk.activities;
2 2
3 -import android.app.Activity;
4 import android.content.Context; 3 import android.content.Context;
5 import android.content.Intent; 4 import android.content.Intent;
6 import android.os.Bundle; 5 import android.os.Bundle;
...@@ -12,6 +11,7 @@ import android.widget.ImageView; ...@@ -12,6 +11,7 @@ import android.widget.ImageView;
12 import android.widget.LinearLayout; 11 import android.widget.LinearLayout;
13 import android.widget.TextView; 12 import android.widget.TextView;
14 13
14 +import androidx.appcompat.app.AppCompatActivity;
15 import androidx.recyclerview.widget.LinearLayoutManager; 15 import androidx.recyclerview.widget.LinearLayoutManager;
16 import androidx.recyclerview.widget.RecyclerView; 16 import androidx.recyclerview.widget.RecyclerView;
17 import androidx.work.OneTimeWorkRequest; 17 import androidx.work.OneTimeWorkRequest;
...@@ -46,7 +46,7 @@ import ly.warp.sdk.utils.managers.WarplyManager; ...@@ -46,7 +46,7 @@ import ly.warp.sdk.utils.managers.WarplyManager;
46 import ly.warp.sdk.views.adapters.MergedGiftsAdapter; 46 import ly.warp.sdk.views.adapters.MergedGiftsAdapter;
47 47
48 48
49 -public class GiftsForYouActivity extends Activity implements View.OnClickListener { 49 +public class GiftsForYouActivity extends AppCompatActivity implements View.OnClickListener {
50 50
51 // =========================================================== 51 // ===========================================================
52 // Constants 52 // Constants
...@@ -156,6 +156,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene ...@@ -156,6 +156,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
156 156
157 @Override 157 @Override
158 protected void onActivityResult(int requestCode, int resultCode, Intent data) { 158 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
159 + super.onActivityResult(requestCode, resultCode, data);
159 if (requestCode == 1004) { 160 if (requestCode == 1004) {
160 OneTimeWorkRequest mywork = new OneTimeWorkRequest.Builder(EventCampaignService.class).build(); 161 OneTimeWorkRequest mywork = new OneTimeWorkRequest.Builder(EventCampaignService.class).build();
161 WorkManager.getInstance(GiftsForYouActivity.this).enqueue(mywork); 162 WorkManager.getInstance(GiftsForYouActivity.this).enqueue(mywork);
......