bug fix, added comments

This commit is contained in:
nuclearfog 2023-07-03 21:28:10 +02:00
parent be0a1285b0
commit 428ae2f130
No known key found for this signature in database
GPG Key ID: 03488A185C476379
3 changed files with 12 additions and 5 deletions

View File

@ -36,28 +36,28 @@ public class ConnectionResult {
}
/**
*
* get API consumer token
*/
public String getConsumerKey() {
return consumerKey;
}
/**
*
* get API consumer secret
*/
public String getConsumerSecret() {
return consumerSecret;
}
/**
*
* get temporary oauth token
*/
public String getOauthToken() {
return tempOauth;
}
/**
*
* get authorization url (link to login page)
*/
public String getAuthorizationUrl() {
return authorizationUrl;

View File

@ -125,6 +125,9 @@ public class ProfileActivity extends AppCompatActivity implements ActivityResult
*/
private static final int SCROLL_THRESHOLD = 10;
/**
* color of the profile image placeholder
*/
private static final int IMAGE_PLACEHOLDER_COLOR = 0x2F000000;
private ActivityResultLauncher<Intent> activityResultLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), this);
@ -335,12 +338,12 @@ public class ProfileActivity extends AppCompatActivity implements ActivityResult
if (user != null) {
MenuItem listItem = m.findItem(R.id.profile_lists);
MenuItem domainBlock = m.findItem(R.id.profile_block_domain);
MenuItem requestItem = m.findItem(R.id.profile_requests);
switch (settings.getLogin().getConfiguration()) {
case TWITTER1:
case TWITTER2:
if (user.isCurrentUser()) {
MenuItem requestItem = m.findItem(R.id.profile_requests);
requestItem.setVisible(true);
listItem.setVisible(true);
} else if (!user.isProtected() || (relation != null && relation.isFollowing())) {
@ -350,6 +353,7 @@ public class ProfileActivity extends AppCompatActivity implements ActivityResult
case MASTODON:
if (user.isCurrentUser()) {
requestItem.setVisible(true);
listItem.setVisible(true);
} else {
domainBlock.setVisible(true);

View File

@ -157,6 +157,9 @@ public class StatusActivity extends AppCompatActivity implements OnClickListener
*/
private static final int MENU_GROUP_COPY = 0x157426;
/**
* color of the profile image placeholder
*/
private static final int IMAGE_PLACEHOLDER_COLOR = 0x2F000000;
private ActivityResultLauncher<Intent> activityResultLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), this);