Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-23 20:53:10 +02:00
parent e4b020575d
commit cbfa3c3f18
4 changed files with 19 additions and 12 deletions

View file

@ -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"

View file

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

View file

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

View file

@ -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);