@nativescript/android 8.2.0-alpha.3 → 8.2.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -156,10 +156,10 @@ class ErrorReport implements TabLayout.OnTabSelectedListener {
156
156
  static void startPendingErrorActivity(Context context, Intent intent) throws CanceledException {
157
157
  int flags = PendingIntent.FLAG_CANCEL_CURRENT;
158
158
  if (Build.VERSION.SDK_INT >= 31) {
159
- flags = PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE;
159
+ flags = PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE;
160
160
  }
161
161
 
162
- PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
162
+ PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, flags);
163
163
 
164
164
  pendingIntent.send(context, 0, intent);
165
165
  }
@@ -35,6 +35,7 @@ public class ErrorReportActivity extends AppCompatActivity {
35
35
 
36
36
  // @Override
37
37
  public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
38
+ super.onRequestPermissionsResult(requestCode, permissions, grantResults);
38
39
  try {
39
40
  Method onRequestPermissionsResultMethod = AppCompatActivity.class.getMethod("onRequestPermissionsResult", int.class, permissions.getClass(), grantResults.getClass());
40
41
  onRequestPermissionsResultMethod.invoke(new AppCompatActivity() /* never do this */, requestCode, permissions, grantResults);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript/android",
3
3
  "description": "NativeScript Runtime for Android",
4
- "version": "8.2.0-alpha.3",
4
+ "version": "8.2.0-alpha.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/NativeScript/android-runtime.git"
@@ -20,7 +20,7 @@
20
20
  "kotlin": "1.6.0"
21
21
  },
22
22
  "publishConfig": {
23
- "tag": "next",
23
+ "tag": "alpha",
24
24
  "access": "public"
25
25
  }
26
26
  }