Small fix with toot activity
This commit is contained in:
parent
171f7457e9
commit
9e743176cb
|
@ -422,8 +422,8 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
|
|||
if (!sharedUri.isEmpty()) {
|
||||
uploadSharedImage(sharedUri);
|
||||
}
|
||||
visibility = sharedpreferences.getString(Helper.SET_TOOT_VISIBILITY + "@" + account.getAcct() + "@" + account.getInstance(), "public");
|
||||
boolean isAccountPrivate = (account.isLocked() || visibility.equals("private"));
|
||||
String visibilityCheck = sharedpreferences.getString(Helper.SET_TOOT_VISIBILITY + "@" + account.getAcct() + "@" + account.getInstance(), "public");
|
||||
boolean isAccountPrivate = (account.isLocked() || visibilityCheck.equals("private"));
|
||||
if(isAccountPrivate){
|
||||
if( tootReply == null) {
|
||||
visibility = "private";
|
||||
|
@ -438,7 +438,7 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
|
|||
}
|
||||
}else {
|
||||
if( tootReply == null){
|
||||
|
||||
visibility = sharedpreferences.getString(Helper.SET_TOOT_VISIBILITY + "@" + account.getAcct() + "@" + account.getInstance(), "public");
|
||||
switch (visibility) {
|
||||
case "public":
|
||||
toot_visibility.setImageResource(R.drawable.ic_public_toot);
|
||||
|
|
|
@ -715,7 +715,7 @@ public class Helper {
|
|||
|
||||
final String fileName = URLUtil.guessFileName(url, null, null);final SharedPreferences sharedpreferences = context.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||
String myDir = sharedpreferences.getString(Helper.SET_FOLDER_RECORD, Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath());
|
||||
|
||||
|
||||
try {
|
||||
File file;
|
||||
if( bitmap != null) {
|
||||
|
|
Loading…
Reference in New Issue