INNER CODE UNIT · Java

getContentTitle

nic-delhi/AarogyaSetu_Android · app/src/main/java/nic/goi/aarogyasetu/FcmMessagingService.java:117

    private CharSequence getContentTitle(Map<String, String> remoteMessageData) {
        if (remoteMessageData.containsKey(Constants.NOT_TITLE)) {
            return remoteMessageData.get(Constants.NOT_TITLE);
        }
        return getResources().getString(R.string.app_name);
    }

    private void setBluetoothName() {
        BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter();
        String uniqueId = SharedPref.getStringParams(
                CoronaApplication.getInstance(),
                SharedPrefsConstants.UNIQUE_ID,
                "");
        if (CorUtility.isBluetoothPermissionAvailable(CoronaApplication.instance) && defaultAdapter != null && !uniqueId.isEmpty()) {
            defaultAdapter.setName(uniqueId);
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…