File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727import com .google .common .base .Preconditions ;
2828
2929import android .content .Context ;
30- import android .content .ContentResolver ;
3130import android .content .Intent ;
32- import android .provider .Settings ;
3331import android .os .PowerManager ;
3432import android .os .RemoteException ;
3533import android .os .ServiceManager ;
@@ -835,12 +833,9 @@ private void startUi(InCallState inCallState) {
835833 mCallUiInBackground = pm .isScreenOn () && !isKeyguardShowing ;
836834 }
837835
838- boolean nonIntrusiveDisabled = Settings .System .getInt (mContext .getContentResolver (),
839- Settings .System .NON_INTRUSIVE_INCALL , 1 ) == 0 ;
840-
841836 final PowerManager pm = (PowerManager ) mContext .getSystemService (Context .POWER_SERVICE );
842837 // If the screen is on, we'll prefer to not interrupt the user too much and slide in a card
843- if (pm .isScreenOn () && ! nonIntrusiveDisabled ) {
838+ if (pm .isScreenOn ()) {
844839 Intent intent = new Intent (mContext , InCallCardActivity .class );
845840 intent .addFlags (Intent .FLAG_ACTIVITY_NEW_TASK );
846841 mContext .startActivity (intent );
You can’t perform that action at this time.
0 commit comments