Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odakyuToiletSignage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kddi
odakyuToiletSignage
Commits
0148a589
Commit
0148a589
authored
Dec 26, 2017
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
画面スリーブさせないように処理追加
parent
0fef32e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
app/src/main/java/jp/odakyu/toiletsignage/activity/ParentActivity.java
+5
-0
No files found.
app/src/main/java/jp/odakyu/toiletsignage/activity/ParentActivity.java
View file @
0148a589
...
@@ -9,6 +9,7 @@ import android.os.Bundle;
...
@@ -9,6 +9,7 @@ import android.os.Bundle;
import
android.support.v7.app.AppCompatActivity
;
import
android.support.v7.app.AppCompatActivity
;
import
android.view.View
;
import
android.view.View
;
import
android.view.Window
;
import
android.view.Window
;
import
android.view.WindowManager
;
import
jp.odakyu.toiletsignage.application.ToiletApplication
;
import
jp.odakyu.toiletsignage.application.ToiletApplication
;
import
jp.odakyu.toiletsignage.constants.ToiletConstants
;
import
jp.odakyu.toiletsignage.constants.ToiletConstants
;
...
@@ -51,11 +52,15 @@ public class ParentActivity extends AppCompatActivity {
...
@@ -51,11 +52,15 @@ public class ParentActivity extends AppCompatActivity {
if
(
isRunning
)
{
if
(
isRunning
)
{
boolean
isNetworkConnect
=
intent
.
getBooleanExtra
(
ToiletConstants
.
KEY_NETWORK_CONNECT
,
false
);
boolean
isNetworkConnect
=
intent
.
getBooleanExtra
(
ToiletConstants
.
KEY_NETWORK_CONNECT
,
false
);
int
errorCount
=
intent
.
getIntExtra
(
ToiletConstants
.
KEY_ERROR_COUNT
,
-
1
);
int
errorCount
=
intent
.
getIntExtra
(
ToiletConstants
.
KEY_ERROR_COUNT
,
-
1
);
Logger
.
i
(
TAG
,
"isNetworkConnect = "
+
isNetworkConnect
+
", errorCount = "
+
errorCount
);
reloadDisplayView
(
errorCount
,
isNetworkConnect
);
reloadDisplayView
(
errorCount
,
isNetworkConnect
);
}
}
}
}
};
};
registerReceiver
(
broadcastReceiver
,
filter
);
registerReceiver
(
broadcastReceiver
,
filter
);
//強制的にスリーブさせない処理追加
getWindow
().
addFlags
(
WindowManager
.
LayoutParams
.
FLAG_KEEP_SCREEN_ON
);
}
}
@Override
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment