This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
app/src/common/shared/org/mozilla/vrbrowser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ protected void onHandleWork(@NonNull Intent intent) {
7373
7474 if (!otherProcessesFound ) {
7575 intent .setClass (CrashReporterService .this , VRBrowserActivity .class );
76+ intent .setPackage (BuildConfig .APPLICATION_ID );
7677 intent .addFlags (Intent .FLAG_ACTIVITY_NEW_TASK );
7778 startActivity (intent );
7879 break ;
Original file line number Diff line number Diff line change 77
88import androidx .annotation .NonNull ;
99
10+ import org .mozilla .vrbrowser .BuildConfig ;
1011import org .mozilla .vrbrowser .VRBrowserActivity ;
1112
1213public class SystemUtils {
1314
1415 public static final void restart (@ NonNull Context context ) {
1516 Intent i = new Intent (context , VRBrowserActivity .class );
17+ i .setPackage (BuildConfig .APPLICATION_ID );
1618 context .startActivity (i .addFlags (Intent .FLAG_ACTIVITY_CLEAR_TASK | Intent .FLAG_ACTIVITY_NEW_TASK ));
1719 }
1820
1921 public static final void scheduleRestart (@ NonNull Context context , long delay ) {
2022 Intent i = new Intent (context , VRBrowserActivity .class );
23+ i .setPackage (BuildConfig .APPLICATION_ID );
2124 i .addFlags (Intent .FLAG_ACTIVITY_CLEAR_TOP );
2225 i .addFlags (Intent .FLAG_ACTIVITY_NEW_TASK );
2326
You can’t perform that action at this time.
0 commit comments