-
Notifications
You must be signed in to change notification settings - Fork 0
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
214 changed files
with
2,248 additions
and
168 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
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...a2da/android/timer/v1_2/AppInitializer.kt → ...oma2da/android/timer/v2/AppInitializer.kt
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
4 changes: 2 additions & 2 deletions
4
.../shoma2da/android/timer/v1_2/Injection.kt → ...og/shoma2da/android/timer/v2/Injection.kt
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
Binary file modified
BIN
-3.15 KB
(78%)
app/src/debug/res/drawable-xxhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
27 changes: 0 additions & 27 deletions
27
...atenablog/shoma2da/android/timer/v1_2/entrypoint/presentation/activity/SettingActivity.kt
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...da/android/timer/v1_2/TimerApplication.kt → ...a2da/android/timer/v2/TimerApplication.kt
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
12 changes: 6 additions & 6 deletions
12
...v1_2/domain/countdown/CountdownService.kt → ...r/v2/domain/countdown/CountdownService.kt
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
4 changes: 2 additions & 2 deletions
4
...2/domain/library/remaintime/RemainTime.kt → ...2/domain/library/remaintime/RemainTime.kt
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
2 changes: 1 addition & 1 deletion
2
...n/notificationlauncher/NotificationIds.kt → ...n/notificationlauncher/NotificationIds.kt
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
2 changes: 1 addition & 1 deletion
2
...onlauncher/NotificationLauncherService.kt → ...onlauncher/NotificationLauncherService.kt
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
2 changes: 1 addition & 1 deletion
2
...in/please_review/PleaseReviewCondition.kt → ...in/please_review/PleaseReviewCondition.kt
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
4 changes: 2 additions & 2 deletions
4
...1_2/domain/please_review/ReviewRequest.kt → .../v2/domain/please_review/ReviewRequest.kt
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
4 changes: 2 additions & 2 deletions
4
..._2/domain/remaintime/RemainTimeCounter.kt → ...v2/domain/remaintime/RemainTimeCounter.kt
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
21 changes: 21 additions & 0 deletions
21
...tlin/com/hatenablog/shoma2da/android/timer/v2/domain/setting/NotificationLengthSetting.kt
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,21 @@ | ||
package com.hatenablog.shoma2da.android.timer.v2.domain.setting | ||
|
||
import android.content.Context | ||
import android.preference.PreferenceManager | ||
|
||
class NotificationLengthSetting(val context:Context) { | ||
|
||
companion object { | ||
fun load(context: Context): NotificationLengthSetting { | ||
return NotificationLengthSetting(context) | ||
} | ||
} | ||
|
||
fun action(callback:(isLimitLess:Boolean, length:Int) -> Unit) { | ||
val pref = PreferenceManager.getDefaultSharedPreferences(context) ?: return | ||
|
||
val length = Integer.parseInt(pref.getString("notification_length", "-1")) | ||
val isLimitLess = (length == -1) | ||
callback.invoke(isLimitLess, length) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...tionlauncher/NotificationMethodSetting.kt → ...main/setting/NotificationMethodSetting.kt
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
14 changes: 6 additions & 8 deletions
14
...int/presentation/activity/MainActivity.kt → ...int/presentation/activity/MainActivity.kt
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
25 changes: 25 additions & 0 deletions
25
.../hatenablog/shoma2da/android/timer/v2/entrypoint/presentation/activity/SettingActivity.kt
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,25 @@ | ||
package com.hatenablog.shoma2da.android.timer.v2.entrypoint.presentation.activity | ||
|
||
import android.os.Bundle | ||
import android.support.v7.app.AppCompatActivity | ||
import com.hatenablog.shoma2da.android.timer.R | ||
import com.hatenablog.shoma2da.android.timer.v2.entrypoint.presentation.fragment.SettingFragment | ||
import com.hatenablog.shoma2da.android.timer.v2.util.extensions.getLogger | ||
|
||
class SettingActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstance : Bundle?) { | ||
super.onCreate(savedInstance) | ||
|
||
fragmentManager.beginTransaction() | ||
.replace(android.R.id.content, SettingFragment()).commit(); | ||
|
||
//Analytics | ||
val logger = application.getLogger() | ||
logger.sendScreenLog("SettingActivity") | ||
|
||
setTitle(R.string.setting) | ||
actionBar?.setDisplayHomeAsUpEnabled(true) | ||
} | ||
|
||
} |
Oops, something went wrong.