Skip to content

Commit

Permalink
完全にプロセスが終了しない問題を解決
Browse files Browse the repository at this point in the history
adb shell ps で修正後にプロセスが終了するようになったのを確認
wearのタイトル画面で画面が暗くなった場合にHandheldとの通信に失敗することがあるので、画面を常に点灯するように修正
  • Loading branch information
Hayato Kimura committed Mar 10, 2016
1 parent b497fe2 commit 4df83c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public void onClick(View v){
@Override
public void onClick(DialogInterface dialog, int which) {
MainActivity.this.moveTaskToBack(true);
android.os.Process.killProcess(android.os.Process.myPid());
}
});
alertdialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public void onClick(View v){//デバッグ用
@Override
public void onClick(DialogInterface dialog, int which) {
WearPlayingActivity.this.moveTaskToBack(true);
android.os.Process.killProcess(android.os.Process.myPid());
}
});
alertdialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
Expand Down
2 changes: 1 addition & 1 deletion wear/src/main/res/layout/activity_playing_wear.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent" android:keepScreenOn="true">

<GridLayout
android:layout_width="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion wear/src/main/res/layout/activity_title_wear.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent" android:keepScreenOn="true">

<ImageView
android:layout_width="match_parent"
Expand Down

0 comments on commit 4df83c0

Please sign in to comment.