Commit 7f1cc633 by Kim Jinsung

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

parent 856677c5
......@@ -200,7 +200,11 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
filter.addAction(Define.filterBeaconScanState);
//Beacon受信開始
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;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
......@@ -281,7 +282,11 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
request.setDestinationUri(Uri.fromFile(file));
downloadManager.enqueue(request);
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();
......
......@@ -11,6 +11,7 @@ import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
......@@ -391,7 +392,11 @@ public class ABookSettingFragment extends PreferenceFragment {
downloadManager.enqueue(request);
}
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();
......
......@@ -9,6 +9,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.location.LocationManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.provider.Settings;
......@@ -222,7 +223,11 @@ public class SppBluetoothPairingSettingActivity extends ABVUIActivity {
}
};
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
registerReceiver(mBluetoothSearchReceiver, filter, RECEIVER_NOT_EXPORTED);
} else {
registerReceiver(mBluetoothSearchReceiver, filter);
}
// bluetoothAdapterから発見開始行う(結果はブロードキャストで取得 mBluetoothSearchReceiver)
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