Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-23 20:53:10 +02:00
Родитель e4b020575d
Коммит cbfa3c3f18
4 изменённых файлов: 19 добавлений и 12 удалений

Просмотреть файл

@ -15,8 +15,8 @@ android {
targetSdkVersion 27
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionCode 41
versionName "2.0.1beta2"
versionCode 44
versionName "2.1.0beta1"
flavorDimensions "default"

Просмотреть файл

@ -831,10 +831,14 @@ public class ChatController extends BaseController implements MessagesListAdapte
bundle.putBoolean(BundleKeys.KEY_CALL_VOICE_ONLY, true);
}
Intent callIntent = new Intent(getActivity(), MagicCallActivity.class);
callIntent.putExtras(bundle);
if (getActivity() != null) {
Intent callIntent = new Intent(getActivity(), MagicCallActivity.class);
callIntent.putExtras(bundle);
return callIntent;
return callIntent;
} else {
return null;
}
} else {
return null;
}

Просмотреть файл

@ -571,8 +571,9 @@ public class ContactsController extends BaseController implements SearchView.OnQ
}
searchItem.setVisible(newUserItemList.size() > 0);
swipeRefreshLayout.setRefreshing(false);
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setRefreshing(false);
}
if (isNewConversationView) {
checkAndHandleBottomButtons();
@ -604,10 +605,10 @@ public class ContactsController extends BaseController implements SearchView.OnQ
break;
}
swipeRefreshLayout.setRefreshing(false);
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setRefreshing(false);
}
}
;
dispose(contactsQueryDisposable);
@ -615,7 +616,9 @@ public class ContactsController extends BaseController implements SearchView.OnQ
@Override
public void onComplete() {
swipeRefreshLayout.setRefreshing(false);
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setRefreshing(false);
}
dispose(contactsQueryDisposable);
alreadyFetching = false;

Просмотреть файл

@ -60,7 +60,7 @@ public class PackageReplacedReceiver extends BroadcastReceiver {
intent.getAction().equals("android.intent.action.MY_PACKAGE_REPLACED")) {
try {
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (packageInfo.versionCode > 42 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
if (packageInfo.versionCode > 43 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationManager notificationManager =
(NotificationManager) context.getSystemService(Context
.NOTIFICATION_SERVICE);