Skip to content

Commit

Permalink
Imports and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
opendining committed Dec 21, 2022
1 parent 251c9f8 commit e9f6d82
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/android/OnNotificationReceiverFullscreenActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
import android.content.pm.PackageManager;
import android.app.KeyguardManager;
import android.os.Bundle;
import android.os.Build;
import android.util.Log;
import android.view.WindowManager

public class OnNotificationReceiverFullscreenActivity extends Activity {
@Override
Expand All @@ -20,13 +22,14 @@ protected void onCreate(Bundle savedInstanceState) {
KeyguardManager keyguardManager = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);
keyguardManager.requestDismissKeyguard(this, null);
} else {
window.addFlags(
getWindow().addFlags(
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
);
}

Log.d(FirebasePlugin.TAG, "OnNotificationReceiverActivity.onCreate()");
setContentView(R.layout.activity_fullscreen);
setContentView(getResources().getIdentifier("activity_fullscreen", "layout", getPackageName()));
//setContentView(R.layout.activity_fullscreen);
handleNotification(this, getIntent());

// finish();
Expand Down

0 comments on commit e9f6d82

Please sign in to comment.