Commit 7f81681f by Kim Jinsung

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

parent 69574aa4
......@@ -183,10 +183,13 @@
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</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:label="DeviceImageListActivity"
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.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 {
addSceneButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
addSceneButton.setEnabled(false);
//パーミッションチェック
ABookPermissionHelper helper = new ABookPermissionHelper(context, Constant.ABookPermissionType.ReadExternalStorage, null);
if (helper.checkMultiPermissions(true)) {
//シーン画像選択画面表示
Logger.d("test");
Intent intent = new Intent();
intent.putExtra(ABookKeys.CONTENT_ID, contentId);
intent.setClassName(getPackageName(), DeviceImageListActivity.class.getName());
startActivity(intent);
} else {
Logger.w(TAG, "ReadExternalStorage checkMultiPermissions false");
}
//連続タップ防止
handler.postDelayed(new Runnable() {
@Override
public void run() {
addSceneButton.setEnabled(true);
//インターネットチェック
if (checkNetworkConnected()) {
addSceneButton.setEnabled(false);
//パーミッションチェック
ABookPermissionHelper helper = new ABookPermissionHelper(context, Constant.ABookPermissionType.ReadExternalStorage, null);
if (helper.checkMultiPermissions(true)) {
//シーン画像選択画面表示
Logger.d("test");
Intent intent = new Intent();
intent.putExtra(ABookKeys.CONTENT_ID, contentId);
String className = DeviceImageListActivity.class.getName();
if (isNormalSize() == false) {
className += "Dialog";
}
intent.setClassName(getPackageName(), className);
startActivity(intent);
} else {
Logger.w(TAG, "ReadExternalStorage checkMultiPermissions false");
}
}, 500);
//連続タップ防止
handler.postDelayed(new Runnable() {
@Override
public void run() {
addSceneButton.setEnabled(true);
}
}, 500);
}
}
});
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