This file contains hidden or 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
| class ExitActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| finish() | |
| } | |
| companion object { | |
| fun exit(context: Context) { |
This file contains hidden or 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
| class FCMService2 : FirebaseMessagingService() { | |
| private var pendingIntent: PendingIntent? = null | |
| override fun onMessageReceived(remoteMessage: RemoteMessage?) { | |
| Log.e("get_type_data", remoteMessage!!.data.toString()) | |
| createNotification(remoteMessage.data) | |
| } | |
| private fun createNotification(messageBody: Map<String, String>) { |
This file contains hidden or 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
| private var connectionReceiver: ConnectionReceiver? = null | |
| override fun onStart() { | |
| super.onStart() | |
| connectionReceiver = ConnectionReceiver() | |
| registerReceiver(connectionReceiver, IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)) | |
| } | |
| override fun onStop() { | |
| try { |
This file contains hidden or 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
| lateinit var manager: ReviewManager | |
| var reviewInfo: ReviewInfo? = null | |
| // Call this method asap, for example in onCreate() | |
| private fun initReviews() { | |
| manager = ReviewManagerFactory.create(this) | |
| manager.requestReviewFlow().addOnCompleteListener { request -> | |
| if (request.isSuccessful) { | |
| reviewInfo = request.result | |
| } else { |
This file contains hidden or 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
| import org.junit.Test | |
| import java.time.DayOfWeek | |
| import java.time.LocalDateTime | |
| import java.time.LocalTime | |
| import java.time.ZoneId | |
| import java.time.format.DateTimeFormatter | |
| import java.time.temporal.TemporalAdjusters | |
| import java.util.* | |
| class DateUtil { |
This file contains hidden or 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
| local panorama = panorama.open() | |
| local partyBrowserApi = panorama.PartyBrowserAPI | |
| local gameApi = panorama.GameStateAPI | |
| local competitiveMatchApi = panorama.CompetitiveMatchAPI | |
| local partyListApi = panorama.PartyListAPI | |
| local friendsListApi = panorama.FriendsListAPI | |
| local lobbyApi = panorama.LobbyAPI | |
| local labelStart = ui.new_label("LUA", "B", "----------- Derank -----------") |