Commit 7f1cc633 by Kim Jinsung

Bug #61594【@Form Android14】報告一覧を開こうとするとアプリが強制終了する

parent 856677c5
...@@ -200,7 +200,11 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity { ...@@ -200,7 +200,11 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
filter.addAction(Define.filterBeaconScanState); filter.addAction(Define.filterBeaconScanState);
//Beacon受信開始 //Beacon受信開始
registerReceiver(mReceiver, filter); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
registerReceiver(mReceiver, filter, RECEIVER_NOT_EXPORTED);
} else {
registerReceiver(mReceiver, filter);
}
/** 置くだけセンサーデバイス関連 終了 **/ /** 置くだけセンサーデバイス関連 終了 **/
/** 中心温度計デバイス関連 開始 **/ /** 中心温度計デバイス関連 開始 **/
......
...@@ -12,6 +12,7 @@ import android.content.Intent; ...@@ -12,6 +12,7 @@ import android.content.Intent;
import android.content.IntentFilter; import android.content.IntentFilter;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.net.Uri; import android.net.Uri;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Environment; import android.os.Environment;
import android.view.View; import android.view.View;
...@@ -281,9 +282,13 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity { ...@@ -281,9 +282,13 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
request.setDestinationUri(Uri.fromFile(file)); request.setDestinationUri(Uri.fromFile(file));
downloadManager.enqueue(request); downloadManager.enqueue(request);
registerReceiver(new OnAppDownloadReceiver(), new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
registerReceiver(new OnAppDownloadReceiver(), new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE), RECEIVER_NOT_EXPORTED);
} else {
registerReceiver(new OnAppDownloadReceiver(), new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE));
}
// アプリを閉じる // アプリを閉じる
saveLeaveAppTime(); saveLeaveAppTime();
moveTaskToBack(true); moveTaskToBack(true);
} }
......
...@@ -11,6 +11,7 @@ import android.content.SharedPreferences; ...@@ -11,6 +11,7 @@ import android.content.SharedPreferences;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.content.res.Resources; import android.content.res.Resources;
import android.net.Uri; import android.net.Uri;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Environment; import android.os.Environment;
import android.os.Handler; import android.os.Handler;
...@@ -391,7 +392,11 @@ public class ABookSettingFragment extends PreferenceFragment { ...@@ -391,7 +392,11 @@ public class ABookSettingFragment extends PreferenceFragment {
downloadManager.enqueue(request); downloadManager.enqueue(request);
} }
getActivity().registerReceiver(new OnAppDownloadReceiver(), new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
getActivity().registerReceiver(new OnAppDownloadReceiver(), new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE), getActivity().RECEIVER_NOT_EXPORTED);
} else {
getActivity().registerReceiver(new OnAppDownloadReceiver(), new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE));
}
// アプリを閉じる // アプリを閉じる
saveLeaveAppTime(); saveLeaveAppTime();
......
...@@ -9,6 +9,7 @@ import android.content.Context; ...@@ -9,6 +9,7 @@ import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.IntentFilter; import android.content.IntentFilter;
import android.location.LocationManager; import android.location.LocationManager;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.provider.Settings; import android.provider.Settings;
...@@ -222,7 +223,11 @@ public class SppBluetoothPairingSettingActivity extends ABVUIActivity { ...@@ -222,7 +223,11 @@ public class SppBluetoothPairingSettingActivity extends ABVUIActivity {
} }
}; };
registerReceiver(mBluetoothSearchReceiver, filter); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
registerReceiver(mBluetoothSearchReceiver, filter, RECEIVER_NOT_EXPORTED);
} else {
registerReceiver(mBluetoothSearchReceiver, filter);
}
// bluetoothAdapterから発見開始行う(結果はブロードキャストで取得 mBluetoothSearchReceiver) // bluetoothAdapterから発見開始行う(結果はブロードキャストで取得 mBluetoothSearchReceiver)
bleManagerUtil.mBluetoothAdapter.startDiscovery(); bleManagerUtil.mBluetoothAdapter.startDiscovery();
......
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