Skip to content

Commit

Permalink
Fix Tasker-related crash
Browse files Browse the repository at this point in the history
  • Loading branch information
farmerbb committed May 24, 2021
1 parent 74c05c9 commit e6fdecf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
// Receiver run by Tasker periodically to check the state of currently active profiles, whenever
// a SecondScreen state is included as a condition in a Tasker profile.
public final class TaskerConditionReceiver extends BroadcastReceiver {
Bundle lastbundle = null;

private Bundle lastbundle = null;

@SuppressWarnings("deprecation")
@Override
public void onReceive(Context context, Intent intent) {
if(U.isExternalAccessDisabled(context)) return;

if (lastbundle.equals(intent.getBundleExtra(com.twofortyfouram.locale.api.Intent.EXTRA_BUNDLE))) {
if(lastbundle != null && lastbundle.equals(intent.getBundleExtra(com.twofortyfouram.locale.api.Intent.EXTRA_BUNDLE))) {
// bundle hasn't changed: we can safely return
return;
}
updateValues(intent);
Expand Down

0 comments on commit e6fdecf

Please sign in to comment.