Commit 7f81681f by Kim Jinsung

スマートフォン全画面表示対応(ステータスバー非表示)

parent 69574aa4
...@@ -183,10 +183,13 @@ ...@@ -183,10 +183,13 @@
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</activity> </activity>
<activity <activity
android:name="jp.agentec.abook.abv.ui.viewer.activity.DeviceImageListActivity" android:name="jp.agentec.abook.abv.ui.viewer.activity.DeviceImageListActivityDialog"
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"
android:label="DeviceImageListActivity" android:label="DeviceImageListActivity"
android:theme="@style/Theme_Contentdetailview" /> android:theme="@style/Theme_Contentdetailview" />
<activity android:name="jp.agentec.abook.abv.ui.viewer.activity.DeviceImageListActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
<activity android:name="jp.agentec.abook.abv.ui.home.activity.ABookSettingActivity" android:theme="@android:style/Theme.NoTitleBar"/> <activity android:name="jp.agentec.abook.abv.ui.home.activity.ABookSettingActivity" android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="jp.agentec.abook.abv.ui.home.activity.ChangePasswordActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/> <activity android:name="jp.agentec.abook.abv.ui.home.activity.ChangePasswordActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
......
package jp.agentec.abook.abv.ui.viewer.activity;
public class DeviceImageListActivityDialog extends DeviceImageListActivity {
}
...@@ -95,26 +95,35 @@ public class ParentWebViewActivity extends ABVContentViewActivity { ...@@ -95,26 +95,35 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
addSceneButton.setOnClickListener(new View.OnClickListener() { addSceneButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
addSceneButton.setEnabled(false); //インターネットチェック
//パーミッションチェック if (checkNetworkConnected()) {
ABookPermissionHelper helper = new ABookPermissionHelper(context, Constant.ABookPermissionType.ReadExternalStorage, null); addSceneButton.setEnabled(false);
if (helper.checkMultiPermissions(true)) { //パーミッションチェック
//シーン画像選択画面表示 ABookPermissionHelper helper = new ABookPermissionHelper(context, Constant.ABookPermissionType.ReadExternalStorage, null);
Logger.d("test"); if (helper.checkMultiPermissions(true)) {
Intent intent = new Intent(); //シーン画像選択画面表示
intent.putExtra(ABookKeys.CONTENT_ID, contentId); Logger.d("test");
intent.setClassName(getPackageName(), DeviceImageListActivity.class.getName()); Intent intent = new Intent();
startActivity(intent); intent.putExtra(ABookKeys.CONTENT_ID, contentId);
} else { String className = DeviceImageListActivity.class.getName();
Logger.w(TAG, "ReadExternalStorage checkMultiPermissions false"); if (isNormalSize() == false) {
} className += "Dialog";
//連続タップ防止 }
handler.postDelayed(new Runnable() {
@Override intent.setClassName(getPackageName(), className);
public void run() { startActivity(intent);
addSceneButton.setEnabled(true); } else {
Logger.w(TAG, "ReadExternalStorage checkMultiPermissions false");
} }
}, 500); //連続タップ防止
handler.postDelayed(new Runnable() {
@Override
public void run() {
addSceneButton.setEnabled(true);
}
}, 500);
}
} }
}); });
createCheckToolbar(); createCheckToolbar();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment