-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,589 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
TMessagesProj/src/main/java/org/telegram/messenger/ChatMessageSharedResources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.telegram.messenger; | ||
|
||
import android.content.Context; | ||
import android.content.res.Resources; | ||
import android.graphics.drawable.Drawable; | ||
|
||
public class ChatMessageSharedResources { | ||
|
||
public Context context; | ||
public Drawable chat_msgAvatarLiveLocationDrawable; | ||
public Drawable chat_redLocationIcon; | ||
|
||
public ChatMessageSharedResources(Context context) { | ||
this.context = context; | ||
} | ||
|
||
public Drawable getRedLocationIcon() { | ||
if (chat_redLocationIcon == null) { | ||
Resources resources = context.getResources(); | ||
chat_redLocationIcon = resources.getDrawable(R.drawable.map_pin).mutate(); | ||
} | ||
return chat_redLocationIcon; | ||
} | ||
|
||
public Drawable getAvatarLiveLocation() { | ||
if (chat_msgAvatarLiveLocationDrawable == null) { | ||
Resources resources = context.getResources(); | ||
chat_msgAvatarLiveLocationDrawable = resources.getDrawable(R.drawable.livepin).mutate(); | ||
} | ||
return chat_msgAvatarLiveLocationDrawable; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.