mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 10:32:39 +00:00
Extend DPAD support.
Allows the hardware DPAD to control more of the UI. Closes #4989 // FREEBIE
This commit is contained in:
@@ -109,6 +109,7 @@ public class MessageRecipientListItem extends RelativeLayout
|
||||
} else if (networkFailure != null || (!isPushGroup && record.isFailed())) {
|
||||
resendButton.setVisibility(View.VISIBLE);
|
||||
resendButton.setEnabled(true);
|
||||
resendButton.requestFocus();
|
||||
conflictButton.setVisibility(View.GONE);
|
||||
|
||||
errorText = getContext().getString(R.string.MessageDetailsRecipient_failed_to_send);
|
||||
|
||||
@@ -9,6 +9,7 @@ import android.text.Editable;
|
||||
import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.ArrayAdapter;
|
||||
@@ -120,6 +121,17 @@ public class RegistrationActivity extends BaseActionBarActivity {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
this.countrySpinner.setOnKeyListener(new View.OnKeyListener() {
|
||||
@Override
|
||||
public boolean onKey(View v, int keyCode, KeyEvent event) {
|
||||
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER && event.getAction() == KeyEvent.ACTION_UP) {
|
||||
Intent intent = new Intent(RegistrationActivity.this, CountrySelectionActivity.class);
|
||||
startActivityForResult(intent, PICK_COUNTRY);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void initializeNumber() {
|
||||
|
||||
Reference in New Issue
Block a user