check pending

This commit is contained in:
Alexey Kuznetsov 2018-02-26 19:19:08 +03:00
commit 24f83e6cd7

View file

@ -104,7 +104,9 @@ public class MainActivity extends AppCompatThemeActivity {
receiver = new ScreenReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (!shared.getBoolean(MainApplication.PREFERENCE_CONTROLS, false))
boolean p = storage.recordingPending();
boolean c = shared.getBoolean(MainApplication.PREFERENCE_CONTROLS, false);
if (!p && !c)
return;
super.onReceive(context, intent);
}