Improves right-to-left layouts in the most basic fashion.
This commit is contained in:
parent
a1e007eb2a
commit
e4dff388d2
15 changed files with 102 additions and 20 deletions
|
@ -546,15 +546,6 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
|
|||
floatingBtn.setEnabled(true);
|
||||
}
|
||||
|
||||
private void addLockToSendButton() {
|
||||
floatingBtn.setText(R.string.action_send);
|
||||
Drawable lock = AppCompatResources.getDrawable(this, R.drawable.send_private);
|
||||
if (lock != null) {
|
||||
lock.setBounds(0, 0, lock.getIntrinsicWidth(), lock.getIntrinsicHeight());
|
||||
floatingBtn.setCompoundDrawables(null, null, lock, null);
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean copyToFile(ContentResolver contentResolver, Uri uri, File file) {
|
||||
InputStream from;
|
||||
FileOutputStream to;
|
||||
|
@ -709,6 +700,15 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
|
|||
return true;
|
||||
}
|
||||
|
||||
private void addLockToSendButton() {
|
||||
floatingBtn.setText(R.string.action_send);
|
||||
Drawable lock = AppCompatResources.getDrawable(this, R.drawable.send_private);
|
||||
if (lock != null) {
|
||||
lock.setBounds(0, 0, lock.getIntrinsicWidth(), lock.getIntrinsicHeight());
|
||||
floatingBtn.setCompoundDrawables(null, null, lock, null);
|
||||
}
|
||||
}
|
||||
|
||||
private void setStatusVisibility(String visibility) {
|
||||
statusVisibility = visibility;
|
||||
switch (visibility) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue