This repository was archived by the owner on Jul 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
app/src/main/java/com/zulip/android/activities Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 39
39
import com .zulip .android .networking .response .LoginResponse ;
40
40
import com .zulip .android .networking .response .ZulipBackendResponse ;
41
41
import com .zulip .android .networking .util .DefaultCallback ;
42
+ import com .zulip .android .util .ActivityTransitionAnim ;
42
43
import com .zulip .android .util .AnimationHelper ;
43
44
import com .zulip .android .util .Constants ;
44
45
import com .zulip .android .util .CommonProgressDialog ;
@@ -432,6 +433,10 @@ public void openHome() {
432
433
commonProgressDialog .dismiss ();
433
434
Intent i = new Intent (this , ZulipActivity .class );
434
435
startActivity (i );
436
+
437
+ // activity transition animation
438
+ ActivityTransitionAnim .transition (this );
439
+
435
440
finish ();
436
441
}
437
442
Original file line number Diff line number Diff line change 1
1
package com .zulip .android .activities ;
2
2
3
- import android .app .Activity ;
4
3
import android .content .Context ;
5
4
import android .content .Intent ;
6
5
import android .content .res .ColorStateList ;
34
33
import com .zulip .android .models .Person ;
35
34
import com .zulip .android .models .Stream ;
36
35
import com .zulip .android .util .ConvertDpPx ;
36
+ import com .zulip .android .util .ActivityTransitionAnim ;
37
37
import com .zulip .android .util .MutedTopics ;
38
38
import com .zulip .android .util .OnItemClickListener ;
39
39
import com .zulip .android .util .UrlHelper ;
@@ -397,7 +397,9 @@ public void onClick(View view) {
397
397
i .addFlags (Intent .FLAG_ACTIVITY_NEW_TASK );
398
398
i .putExtra (Intent .EXTRA_TEXT , url );
399
399
zulipApp .startActivity (i );
400
- ((Activity ) context ).overridePendingTransition (android .R .anim .fade_in , android .R .anim .fade_out );
400
+
401
+ // activity transition animation
402
+ ActivityTransitionAnim .transition (context );
401
403
}
402
404
});
403
405
} else {
Original file line number Diff line number Diff line change @@ -2150,6 +2150,10 @@ private void openLogin(String serverUrl) {
2150
2150
Intent i = new Intent (this , LoginActivity .class );
2151
2151
i .putExtra (Constants .SERVER_URL , serverUrl );
2152
2152
startActivity (i );
2153
+
2154
+ // activity transition animation
2155
+ ActivityTransitionAnim .transition (this );
2156
+
2153
2157
finish ();
2154
2158
}
2155
2159
You can’t perform that action at this time.
0 commit comments