Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Riot can send voice,caption via image and vedio and etc,improved UI #3514

Open
wants to merge 164 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
de557db
Fix build problems
amiraliakbari Feb 2, 2019
0cc2115
Added saba flavor
amiraliakbari Feb 2, 2019
7512801
Modification in login and translations
amiraliakbari Feb 2, 2019
a88da7a
Auto encryption with checking settings
maryambehzi Feb 5, 2019
41888e0
Improve new chat contact selection activity
imankianian Feb 20, 2019
3420979
removed unnecessary menu items, and added "About Saba" item to the menu.
imankianian Feb 27, 2019
dc9c9fa
- Changed "About_Saba" activity and its correspondant entities to "Ab…
imankianian Mar 3, 2019
ee202c8
- Changed "About_Saba" activity title and its correspondant entities …
imankianian Mar 3, 2019
5808964
Improved fisrt search view
maryambehzi Mar 12, 2019
88b3b63
Merge branch 'develop' of https://github.com/bel-os/riot-android into…
maryambehzi Mar 12, 2019
3888b1a
Refactoring code to minimize difference from base Riot code
amiraliakbari Apr 9, 2019
542c982
verify unknown devices
maryambehzi Apr 10, 2019
256573d
Updated Persian translation
amiraliakbari Apr 13, 2019
d61d5a2
Update build tools, Gradle and Kotlin
amiraliakbari Apr 13, 2019
4c2a6a4
Merge remote-tracking branch 'upstream/develop' into develop
amiraliakbari Apr 13, 2019
397c600
Versioning for Saba builds
amiraliakbari Apr 17, 2019
0543b61
Saba messenger icon
amiraliakbari Apr 17, 2019
3ecee33
Updated about view for Saba
amiraliakbari Apr 20, 2019
53aadc5
Some Persian translations
amiraliakbari Apr 20, 2019
4e41c24
Saba splash screen
amiraliakbari Apr 22, 2019
d0fc7ca
Simplifying settings view
amiraliakbari Apr 23, 2019
fcd86ca
Improving settings
amiraliakbari Apr 25, 2019
8922225
Updating gradle version
amiraliakbari Apr 25, 2019
70c3924
Updated menu and navigation UX
amiraliakbari Apr 30, 2019
4dc4125
Merge branch 'hotfix/compilation_issue'
bmarty Aug 28, 2019
f04ca01
Merge branch 'release/0.9.5'
bmarty Sep 10, 2019
a313527
Merge branch 'release/0.9.6'
bmarty Sep 13, 2019
80a23c8
merge from upstream
maryambehzi Oct 6, 2019
35626cc
Merge branch 'release/0.9.7'
BillCarsonFr Oct 7, 2019
b987985
Merge branch 'release/0.9.8'
BillCarsonFr Oct 9, 2019
6cb9463
Unknown device validation got deleted and setting is invisible from s…
maryambehzi Oct 21, 2019
41f891a
sreen debug option deleted
maryambehzi Oct 23, 2019
8bf37a5
build gadle with external matrixsdk
maryambehzi Nov 9, 2019
5da259a
Merge branch 'release/0.9.9'
BillCarsonFr Nov 25, 2019
3976f05
Unknow device verification fixed for encrypted messeges
maryambehzi Nov 25, 2019
8435a9b
- Fixed settings load error in drawer menu
Nov 27, 2019
e0bf7e8
- Encryption is active by default
Nov 27, 2019
4afb530
translations and AboutSaba Buttons
maryambehzi Nov 30, 2019
8a4c275
- Designed and changed launcher icon
javadAboutorabi Dec 14, 2019
fb79f20
- Added shabnam.ttf font to assets folder
javadAboutorabi Jan 13, 2020
f6576a9
verification strings translated
maryambehzi Jan 13, 2020
afc13df
Merge branch 'develop' of http://git.local/sabaos/saba_messenger into…
maryambehzi Jan 13, 2020
8354f7b
Merge branch 'develop' of http://git.local/sabaos/saba_messenger into…
maryambehzi Jan 13, 2020
d3c307a
Calligraphy class for shabnam font
maryambehzi Jan 13, 2020
73cbbd0
Version Bahman98-A
amiraliakbari Feb 3, 2020
24953da
- Fixed encryption not being active when inviting people
Feb 4, 2020
6451c68
- Added Sentry exception report
Feb 4, 2020
1e0efbe
RtL for farsi in home page & string translation
maryambehzi Feb 4, 2020
d165659
Merge branch 'develop' of http://git.local/sabaos/saba_messenger into…
maryambehzi Feb 4, 2020
b829a5c
Merge remote-tracking branch 'origin/develop' into develop
amiraliakbari Feb 8, 2020
abe4ca9
Bahman98-B
amiraliakbari Feb 8, 2020
81238f9
reply on Long Click, selection on Click disabled
maryambehzi Feb 9, 2020
0207167
Merge branch 'develop' of http://git.local/sabaos/saba_messenger into…
maryambehzi Feb 9, 2020
1cf5609
Reply menu item added
maryambehzi Feb 10, 2020
6f8ee3c
Merge branch 'release/0.9.10'
bmarty Feb 10, 2020
8414404
Using Saba servers by default
amiraliakbari Feb 24, 2020
b9217cc
- Disabled bug/crash detection via shake by default
Feb 24, 2020
eb28da4
- Removed key backup banner from VectorHomeActivity
Feb 25, 2020
b719a94
Improve online members summary in group headers
amiraliakbari Feb 25, 2020
2de17f2
omiting the matrix dialogs in the start of chat
maryambehzi Feb 26, 2020
ac0ab93
ui improve for matrix dialog & collapse/expand omited
maryambehzi Feb 26, 2020
a80de4f
voice record button & timestamp for each message & preview images bef…
maryambehzi Feb 27, 2020
2865527
Version 9812101
amiraliakbari Feb 29, 2020
b90ace1
reply bug fixed
maryambehzi Feb 29, 2020
3f127dd
- Excluded Accept-Terms dialog from app in a fail-safe manner
imankianian Mar 1, 2020
3579098
merged with upstream
imankianian Mar 2, 2020
265883c
- Fixed voice call and video call button not working in MemberDetails…
imankianian Mar 2, 2020
3110a1a
reply bug fixed II
maryambehzi Mar 2, 2020
b69489d
Merge branch 'develop' of github.com:bel-os/riot-android into develop
maryambehzi Mar 2, 2020
919f190
setting crash fixed & setting strings translation
maryambehzi Mar 2, 2020
f42cbec
select language from settings in app added & a test background added …
maryambehzi Mar 2, 2020
954de53
- Made EventStreamReceiverX foreground service so that app will alway…
imankianian Mar 3, 2020
cbf64be
matrix member messages in smaller format & background set to normal
maryambehzi Mar 4, 2020
5e54685
- Backup key is saved on internal storage by default unless it has be…
imankianian Mar 4, 2020
1259a8a
Minor UI improvements
amiraliakbari Mar 8, 2020
ff222b3
- Changed recovery key save location to apps private storage
imankianian Mar 9, 2020
6377e8a
Updated Sentry library to 2
amiraliakbari Mar 9, 2020
9ce8efc
- improved recovery key logic
imankianian Mar 9, 2020
21e0dca
- Stopped CallService and its notifications
imankianian Mar 16, 2020
3054482
Updated minSDK to 21
amiraliakbari Apr 6, 2020
99755de
Removed branding
amiraliakbari Apr 6, 2020
50dea5c
Replaced hardcoded urls with home server config
amiraliakbari Apr 6, 2020
5735ccc
Refactor
amiraliakbari Apr 6, 2020
9254c61
Remove accept terms code for now
amiraliakbari Apr 6, 2020
ecf4ff7
Not showing dialogs in Saba builds
amiraliakbari Apr 6, 2020
d0b64a2
Fix for viewing a user page before having any chat with her
amiraliakbari Apr 6, 2020
706e78b
Version Farvardin99-A Build 9901181
amiraliakbari Apr 6, 2020
0185e56
Merge branch 'release/0.9.11'
bmarty May 13, 2020
84a1e49
Merge branch 'release/0.9.12'
bmarty May 20, 2020
76285f8
- Voice recording feature added
javadAboutorabi May 24, 2020
e87c9d9
Merge branch 'develop' of https://github.com/bel-os/riot-android into…
javadAboutorabi May 24, 2020
81a41a9
- The title of the audio file is created in the format of year, month…
javadAboutorabi Jun 1, 2020
870160f
- Do not display MediaPreviewerActivity class after recording voice
javadAboutorabi Jun 1, 2020
acd1105
- Added RECORD_AUDIO permission request
javadAboutorabi Jun 10, 2020
0121dc1
- Improve UI of voice recording capability
javadAboutorabi Jun 13, 2020
eeaa71d
- Improve UI of voice recording capability
javadAboutorabi Jun 21, 2020
d6fcc06
improved conversations layout
Jun 23, 2020
97b3dde
Changed lock icon
Jun 23, 2020
49277fd
- embedded audio playing capability inside app
javadAboutorabi Jun 23, 2020
c1836c6
Changed applicationId to "ir.batna.messaging"
imankianian Jun 23, 2020
b27fe82
Removed google from repositories
imankianian Jun 23, 2020
bd8717a
- Voice playback feature added
javadAboutorabi Jun 28, 2020
f6d238f
- Debug voice playback feature
javadAboutorabi Jun 28, 2020
e25486f
Changed server address
imankianian Jun 30, 2020
88a1216
Changed visibility cryptography keys management in vector_settings_…
Jun 30, 2020
2952358
Changed visibility BottomNavigationView in activity_home.xml
Jul 1, 2020
8651137
- Changed file Icon to Play icon when file is a voice message
javadAboutorabi Jul 1, 2020
ad66383
- Added play button to each vice
javadAboutorabi Jul 1, 2020
c2b06b7
Merge remote-tracking branch 'global_resource/master' into develop
Jul 4, 2020
ce8754f
Merge branch 'develop' of https://github.com/batna-ir/riot-android in…
Jul 4, 2020
6f85fdc
Removed Confirmation AlertDialog in voice or video call
Jul 4, 2020
90b0627
Removed unnecessary codes & commends
Jul 5, 2020
1cd5ee7
- Added play and pause icon for each voice
javadAboutorabi Jul 5, 2020
a4e5b53
- Stop media player when exited VectorMessageListFragment
javadAboutorabi Jul 5, 2020
44fbf16
- Improved voice quality (Changed format)
javadAboutorabi Jul 5, 2020
bcbd887
Changed LayoutDirection (in messagesAdapter_body_view).
Jul 6, 2020
cd716c2
- Improved playBack UI
javadAboutorabi Jul 6, 2020
7a91794
- Debugged voice playback
javadAboutorabi Jul 7, 2020
3b50942
- Created VectorThread for voice recording (Fixed bug record)
javadAboutorabi Jul 13, 2020
2168202
Made conversation and room layout user-friendly
Jul 13, 2020
27764b7
- Moved some item to saba flavor
javadAboutorabi Jul 14, 2020
39748cd
- Debug file onclick
javadAboutorabi Jul 14, 2020
e17c1d8
Made vectorMessageFile_ImageVideo layout user-friendly
Jul 14, 2020
e026b39
- Activated voice download icon
javadAboutorabi Jul 14, 2020
f5c3b1b
- Added button click listener to voice play icon
javadAboutorabi Jul 14, 2020
555d18e
- Fixed mediaPlayer playback bug
javadAboutorabi Jul 15, 2020
244f67f
fix bug StopVoiceRecorder in VectorThread
Jul 15, 2020
0eeed86
- Fixed mediaPlayer playback bug
javadAboutorabi Jul 15, 2020
b9fb788
Improved mediaPlayer playback
javadAboutorabi Jul 18, 2020
6656979
Hid keys backup banner
Jul 18, 2020
35a10fd
Removed NotificationAreaView ,added scrolling via buttonNavigation, a…
Jul 21, 2020
6e71ea9
Improved ButtonNavigationMain
Jul 21, 2020
9b34319
Fixed bug in onCompletion method
javadAboutorabi Jul 22, 2020
a32bece
Changed voice Message download path to app's cache folder
javadAboutorabi Jul 26, 2020
bc5c101
Only one voice is saved at a time
javadAboutorabi Jul 26, 2020
2f8613f
Removed preview layout and preview toast ,when join room
Jul 26, 2020
1ce9e06
Merge branch 'develop' of https://github.com/batna-ir/riot-android in…
Jul 26, 2020
cc74dd2
Improved UI in layout conversation
Jul 26, 2020
efaab75
Only one voice is saved at a time(Fixed)
javadAboutorabi Jul 26, 2020
400f8b4
Added icon for API<26
Jul 27, 2020
762610d
Merge branch 'develop' of https://github.com/batna-ir/riot-android in…
Jul 27, 2020
95d1489
Updated versionCode and versionName
imankianian Jul 27, 2020
f24ad65
Added and override themes in flavor SABA
Jul 28, 2020
3fe701b
Merge branch 'develop' of https://github.com/batna-ir/riot-android in…
Jul 28, 2020
55976a6
Voice automatically plays after click in download button
javadAboutorabi Jul 28, 2020
eea481e
Merge branch 'develop' of https://github.com/batna-ir/riot-android in…
javadAboutorabi Jul 28, 2020
fc7bab3
Updated versionCode and versionName
imankianian Jul 28, 2020
03c560f
Fixed problem of click on the voice message file name.
javadAboutorabi Aug 1, 2020
0392f3f
Added imageView button compatibility for API<22
javadAboutorabi Aug 1, 2020
3754a8e
Added home server change capability.
Aug 2, 2020
058d459
Merge branch 'develop' of https://github.com/batna-ir/riot-android in…
Aug 2, 2020
c7f4e79
Linked to mdm-agent app
Mehdi-git Aug 12, 2020
ed81419
Fixed some bugs
Mehdi-git Aug 12, 2020
7b80e62
Added the ability to answer video and voice calls when the phone is l…
Aug 15, 2020
ac93272
Added home server change capability.
Aug 15, 2020
5c5aaab
Merge branch 'develop' of https://github.com/batna-ir/riot-android in…
Aug 15, 2020
647444b
Updated versionCode and versionName
imankianian Aug 16, 2020
c4ea1e9
Removed chat dialog when user doesn't have permission to send message
Aug 17, 2020
d4b68cb
Set media player to play video
Aug 17, 2020
fc98d74
Added the ability to send caption via image and video.
Aug 23, 2020
8fd9bae
Fixed bug Caption Image.
Sep 6, 2020
b1f6ecc
Added User_Friendly media controller when video play in VectorMediaVi…
Sep 14, 2020
2bed886
Improved splash activity;
EsmaeeilMoradi Sep 26, 2020
b65f03d
Added version code and version name for F-Droid.
EsmaeeilMoradi Sep 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#builds
/build
*.apk
*.hprof

.gradle
/local.properties
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ allprojects {
maven {
url "https://github.com/vector-im/jitsi_libre_maven/raw/master/releases"
}
google()
maven {
url "https://maven.google.com"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand Down
7 changes: 7 additions & 0 deletions sentry.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
+defaults.url=https://sentry.ir-cloud.ir/

+defaults.project=messenger

+defaults.org=batna

+auth.token=a9b6f48c8b9d4c6399f01536eaf3cf964ce15a119e0544c0b3a33409ca131d30
30 changes: 26 additions & 4 deletions vector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ext.abiVersionCodes = ["armeabi-v7a": 1, "arm64-v8a": 2, "x86": 3, "x86_64": 4].

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'

packagingOptions {
exclude 'META-INF/LICENSE'
Expand All @@ -44,18 +45,19 @@ android {

defaultConfig {
applicationId "im.vector"
minSdkVersion 16
minSdkVersion 21
targetSdkVersion 28
// use the version code
versionCode rootProject.ext.versionCodeProp
versionName rootProject.ext.versionNameProp
versionCode 9907051
versionName "Mehr99-A"

// Keep abiFilter for the universalApk
ndk {
abiFilters "armeabi-v7a", "x86", 'arm64-v8a', 'x86_64'
}

multiDexEnabled true
vectorDrawables.useSupportLibrary = true

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -127,6 +129,7 @@ android {
// use the version name
versionCode rootProject.ext.versionCodeProp
versionName rootProject.ext.versionNameProp
buildConfigField "boolean", "IS_SABA", "false"
buildConfigField "boolean", "ALLOW_FCM_USE", "true"
buildConfigField "String", "SHORT_FLAVOR_DESCRIPTION", "\"G\""
buildConfigField "String", "FLAVOR_DESCRIPTION", "\"GooglePlay\""
Expand All @@ -137,14 +140,27 @@ android {
// use the version name
versionCode rootProject.ext.versionCodeProp
versionName rootProject.ext.versionNameProp
buildConfigField "boolean", "IS_SABA", "false"
buildConfigField "boolean", "ALLOW_FCM_USE", "false"
buildConfigField "String", "SHORT_FLAVOR_DESCRIPTION", "\"F\""
buildConfigField "String", "FLAVOR_DESCRIPTION", "\"FDroid\""
}

saba {
applicationId "ir.batna.messaging"
versionCode 9905261
versionName "Mordad99-C"
buildConfigField "boolean", "IS_SABA", "true"
buildConfigField "boolean", "ALLOW_HOME_SERVER_CHANGE", "true"
buildConfigField "boolean", "ALLOW_FCM_USE", "false"
buildConfigField "String", "SHORT_FLAVOR_DESCRIPTION", "\"S\""
buildConfigField "String", "FLAVOR_DESCRIPTION", "\"Saba\""
}
}

lintOptions {
lintConfig file("lint.xml")
abortOnError false
}

testOptions {
Expand Down Expand Up @@ -176,6 +192,8 @@ static def gitBranchName() {
}

dependencies {
compile 'uk.co.chrisjenx:calligraphy:2.3.0'

// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

Expand Down Expand Up @@ -270,6 +288,9 @@ dependencies {

// appfdroid flavor only

implementation 'io.sentry:sentry-android:2.0.2'
implementation 'org.slf4j:slf4j-nop:1.7.25'

// Test
testImplementation 'junit:junit:4.12' // Test
testImplementation 'androidx.test:runner:1.2.0'
Expand All @@ -296,7 +317,8 @@ configurations.all {
}
}

if (!getGradle().getStartParameter().getTaskRequests().toString().contains("Appfdroid")
if (!getGradle().getStartParameter().getTaskRequests().toString().contains("fdroid")
&& !getGradle().getStartParameter().getTaskRequests().toString().contains("Saba")
&& !getGradle().getStartParameter().getTaskRequests().toString().contains("assembleAndroidTest")) {
apply plugin: 'com.google.gms.google-services'
}
2 changes: 1 addition & 1 deletion vector/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
<service
android:name=".services.CallService"
android:exported="false" />

</application>

</manifest>
16 changes: 15 additions & 1 deletion vector/src/main/java/im/vector/VectorApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
import im.vector.notifications.NotificationDrawerManager;
import im.vector.notifications.NotificationUtils;
import im.vector.push.PushManager;
import im.vector.services.EventStreamServiceX;
import im.vector.settings.FontScale;
import im.vector.settings.VectorLocale;
import im.vector.tools.VectorUncaughtExceptionHandler;
Expand Down Expand Up @@ -193,7 +194,6 @@ public void onReceive(Context context, Intent intent) {

@Override
public void onCreate() {
Log.d(LOG_TAG, "onCreate");
super.onCreate();

mLifeCycleListener = new VectorLifeCycleObserver();
Expand Down Expand Up @@ -359,6 +359,20 @@ public void onActivityDestroyed(Activity activity) {
PreferencesManager.fixMigrationIssues(this);
initApplicationLocale();
visitSessionVariables();
if (BuildConfig.IS_SABA) {
// Sentry.captureMessage("Startup");
try {
Intent serviceIntent = new Intent(this, EventStreamServiceX.class);
serviceIntent.setAction(EventStreamServiceX.ACTION_SIMULATED_PERMANENT_LISTENING);
if (Build.VERSION.SDK_INT >= 26) {
startForegroundService(serviceIntent);
} else {
startService(serviceIntent);
}
} catch (Exception e) {
Log.v("Error in VectorApp:", e.getMessage());
}
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package im.vector.activity;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.http.SslError;
Expand Down Expand Up @@ -46,6 +47,7 @@

import im.vector.R;
import im.vector.ui.themes.ThemeUtils;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

/**
* AccountCreationCaptchaActivity displays a webview to check captchas.
Expand Down Expand Up @@ -84,6 +86,11 @@ public class AccountCreationCaptchaActivity extends VectorAppCompatActivity {
" </body> " +
" </html> ";

@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}

@Override
public int getLayoutRes() {
return R.layout.activity_vector_registration_captcha;
Expand Down
20 changes: 20 additions & 0 deletions vector/src/main/java/im/vector/activity/Calligraphy.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package im.vector.activity;

import android.app.Application;

import im.vector.R;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;

public class Calligraphy extends Application {
@Override
public void onCreate() {
super.onCreate();
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath("font/shabnam.ttf")
.setFontAttrId(R.attr.fontPath)
.build()
);

}

}
12 changes: 8 additions & 4 deletions vector/src/main/java/im/vector/activity/CommonActivityUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ public void run() {
* @param outputFilename optional the output filename
* @param callback the asynchronous callback
*/
private static void saveFileInto(final File sourceFile, final String dstDirPath, final String outputFilename, final ApiCallback<String> callback) {
private static void saveFileInto(final File sourceFile, final String dstDirPath, final String outputFilename, final ApiCallback<String> callback, Context context) {
// sanity check
if ((null == sourceFile) || (null == dstDirPath)) {
new Handler(Looper.getMainLooper()).post(new Runnable() {
Expand Down Expand Up @@ -958,7 +958,11 @@ protected Pair<String, Exception> doInBackground(Void... params) {
}

File dstDir = Environment.getExternalStoragePublicDirectory(dstDirPath);
if (dstDir != null) {
assert outputFilename != null;
if (outputFilename.contains(".3gp")|| outputFilename.contains(".mp3") ||outputFilename.contains(".aac")) {
dstDir = new File(context.getApplicationContext().getCacheDir(), "voice");
}
if (dstDir != null) {
dstDir.mkdirs();
}

Expand Down Expand Up @@ -1069,7 +1073,7 @@ public void onSuccess(String fullFilePath) {

try {
File file = new File(fullFilePath);
downloadManager.addCompletedDownload(file.getName(), file.getName(), true, mimeType, file.getAbsolutePath(), file.length(), true);
downloadManager.addCompletedDownload(file.getName(), file.getName(), true, mimeType, file.getAbsolutePath(), file.length(), false);
} catch (Exception e) {
Log.e(LOG_TAG, "## saveMediaIntoDownloads(): Exception Msg=" + e.getMessage(), e);
}
Expand Down Expand Up @@ -1103,7 +1107,7 @@ public void onUnexpectedError(Exception e) {
callback.onUnexpectedError(e);
}
}
});
},context);
}

//==============================================================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import im.vector.ui.themes.ThemeUtils;
import im.vector.util.CountryPhoneData;
import im.vector.util.PhoneNumberUtils;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

public class CountryPickerActivity extends VectorAppCompatActivity implements CountryAdapter.OnSelectCountryListener, SearchView.OnQueryTextListener {

Expand Down Expand Up @@ -72,6 +73,12 @@ public static Intent getIntent(final Context context, final boolean withIndicato
*/

@NotNull

@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}

@Override
public ActivityOtherThemes getOtherThemes() {
return ActivityOtherThemes.Picker.INSTANCE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public void initUiAndData() {
setWaitingView(findViewById(R.id.jitsi_progress_layout));

mWidget = (Widget) getIntent().getSerializableExtra(EXTRA_WIDGET_ID);
mJitsi = new JitsiWidgetProperties(mWidget.getUrl());
mIsVideoCall = getIntent().getBooleanExtra(EXTRA_ENABLE_VIDEO, true);

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import im.vector.settings.VectorLocale;
import im.vector.ui.themes.ActivityOtherThemes;
import im.vector.ui.themes.ThemeUtils;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

public class LanguagePickerActivity extends VectorAppCompatActivity implements LanguagesAdapter.OnSelectLocaleListener, SearchView.OnQueryTextListener {

Expand All @@ -64,6 +65,12 @@ public static Intent getIntent(final Context context) {
*/

@NotNull

@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}

@Override
public ActivityOtherThemes getOtherThemes() {
return ActivityOtherThemes.Picker.INSTANCE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package im.vector.activity;

import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.text.TextUtils;
Expand Down Expand Up @@ -48,6 +49,7 @@
import im.vector.notifications.NotificationUtils;
import im.vector.ui.themes.ActivityOtherThemes;
import im.vector.util.ViewUtilKt;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

/**
* LockScreenActivity is displayed within the notification to send a message without opening the application.
Expand All @@ -74,6 +76,12 @@ public static boolean isDisplayingALockScreenActivity() {
private EditText mEditText;

@NotNull

@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}

@Override
public ActivityOtherThemes getOtherThemes() {
return ActivityOtherThemes.Lock.INSTANCE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@

package im.vector.activity;

import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
import android.widget.ImageView;

import butterknife.BindView;
import im.vector.R;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

/**
* LoggingOutActivity displays an animation while a session log out is in progress.
Expand All @@ -33,6 +35,11 @@ public class LoggingOutActivity extends MXCActionBarActivity {
@BindView(R.id.animated_logo_image_view)
ImageView animatedLogo;

@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}

@Override
public int getLayoutRes() {
return R.layout.vector_activity_splash;
Expand Down
Loading