<commit_before>package sk.henrichg.phoneprofilesplus;

import android.app.Activity;
import android.app.KeyguardManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;


public class KeyguardService extends Service {

    static final String KEYGUARD_LOCK = "phoneProfilesPlus.keyguardLock";

    private KeyguardManager keyguardManager;
    private KeyguardManager.KeyguardLock keyguardLock;

    @SuppressWarnings("deprecation")
	@Override
    public void onCreate()
	{
        keyguardManager = (KeyguardManager)getApplicationContext().getSystemService(Activity.KEYGUARD_SERVICE);
        keyguardLock = keyguardManager.newKeyguardLock(KEYGUARD_LOCK);
	}

	@Override
    public void onDestroy()
	{
        Log.e("---- KeyguardService", "onDeastroy");
        Keyguard.reenable(keyguardLock);
    }<commit_msg>Fixed keyguard flickering?<commit_after>package sk.henrichg.phoneprofilesplus;

import android.app.Activity;
import android.app.KeyguardManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;


public class KeyguardService extends Service {

    static final String KEYGUARD_LOCK = "phoneProfilesPlus.keyguardLock";

    private KeyguardManager keyguardManager;
    private KeyguardManager.KeyguardLock keyguardLock;

    @SuppressWarnings("deprecation")
	@Override
    public void onCreate()
	{
        GlobalData.logE("$$$ KeyguardService.onStartCommand","onCreate");
        keyguardManager = (KeyguardManager)getApplicationContext().getSystemService(Activity.KEYGUARD_SERVICE);
        keyguardLock = keyguardManager.newKeyguardLock(KEYGUARD_LOCK);
	}

	@Override
    public void onDestroy()
	{
        GlobalData.logE("$$$ KeyguardService.onStartCommand","onDestroy");
        Keyguard.reenable(keyguardLock);
    }
{'fraction_non_alphanumeric': 0.093603744149766, 'fraction_numerical': 0.0, 'mean_word_length': 4.993769470404985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1569317', 'n_tokens_mistral': 553, 'n_tokens_neox': 545, 'n_words': 101}