refactor(AutoSignAlarm.java): 使用 Kotlin 重写
This commit is contained in:
parent
49d3fdd056
commit
417c750ea5
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue