mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Apply suggestions from code review
use SHARED_TITLE instead of SHARING_TITLE
This commit is contained in:
committed by
GitHub
parent
160303521d
commit
2332d7c227
@@ -14,7 +14,7 @@ public class RelayUtil {
|
||||
private static final String FORWARDED_MESSAGE_IDS = "forwarded_message_ids";
|
||||
private static final String SHARED_URIS = "shared_uris";
|
||||
private static final String IS_SHARING = "is_sharing";
|
||||
private static final String SHARING_TITLE = "sharing_title";
|
||||
private static final String SHARED_TITLE = "shared_title";
|
||||
private static final String DIRECT_SHARING_CHAT_ID = "direct_sharing_chat_id";
|
||||
|
||||
public static boolean isRelayingMessageContent(Activity activity) {
|
||||
@@ -82,7 +82,7 @@ public class RelayUtil {
|
||||
|
||||
public static String getSharedTitle(Activity activity) {
|
||||
try {
|
||||
return activity.getIntent().getStringExtra(SHARING_TITLE);
|
||||
return activity.getIntent().getStringExtra(SHARED_TITLE);
|
||||
} catch (NullPointerException npe) {
|
||||
return null;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ public class RelayUtil {
|
||||
}
|
||||
|
||||
public static void setSharedTitle(Intent composeIntent, String text) {
|
||||
composeIntent.putExtra(SHARING_TITLE, text);
|
||||
composeIntent.putExtra(SHARED_TITLE, text);
|
||||
}
|
||||
|
||||
public static void setDirectSharing(Intent composeIntent, int chatId) {
|
||||
|
||||
Reference in New Issue
Block a user