* commit '87629cda33ead267c44a9276e10403f194c62651': Bluetooth: Fix to avoid taking space as name upon orientation
This commit is contained in:
@@ -25,6 +25,7 @@ import android.content.Context;
|
|||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.IntentFilter;
|
import android.content.IntentFilter;
|
||||||
|
import android.content.res.Configuration;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
import android.text.InputFilter;
|
import android.text.InputFilter;
|
||||||
@@ -195,6 +196,13 @@ public final class BluetoothNameDialogFragment extends DialogFragment implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onConfigurationChanged(Configuration newConfig, CharSequence s) {
|
||||||
|
super.onConfigurationChanged(newConfig);
|
||||||
|
if (mOkButton != null) {
|
||||||
|
mOkButton.setEnabled(s.length() != 0 && !(s.toString().trim().isEmpty()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Not used */
|
/* Not used */
|
||||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user