refactor(AutoSignAlarm.java): 使用 Kotlin 重写

This commit is contained in:
GoFly233 2020-08-13 18:50:46 +08:00 committed by HuanChengFly
parent 49d3fdd056
commit 417c750ea5
2 changed files with 16 additions and 16 deletions

View File

@ -1,16 +0,0 @@
package com.huanchengfly.tieba.post.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.huanchengfly.tieba.post.utils.TiebaUtil;
public class AutoSignAlarm extends BroadcastReceiver {
public static final String TAG = AutoSignAlarm.class.getSimpleName();
@Override
public void onReceive(Context context, Intent intent) {
TiebaUtil.startSign(context);
}
}

View File

@ -0,0 +1,16 @@
package com.huanchengfly.tieba.post.receivers
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.huanchengfly.tieba.post.utils.TiebaUtil
class AutoSignAlarm : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
TiebaUtil.startSign(context)
}
companion object {
val TAG = AutoSignAlarm::class.java.simpleName
}
}