-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
52 changed files
with
1,409 additions
and
1,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.36 KB
(110%)
.../com.owncloud.android.ui.dialog.DialogFragmentIT_testFileActionsBottomSheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.15 KB
(110%)
...d.android.ui.dialog.SendFilesDialogTest_showDialogDifferentTypes_Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.15 KB
(110%)
...ug/com.owncloud.android.ui.dialog.SendFilesDialogTest_showDialog_Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.57 KB
(110%)
...s/gplay/debug/com.owncloud.android.ui.dialog.SendShareDialogTest_showDialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 0 additions & 73 deletions
73
app/src/main/java/com/nextcloud/client/di/ActivityInjector.java
This file was deleted.
Oops, something went wrong.
62 changes: 62 additions & 0 deletions
62
app/src/main/java/com/nextcloud/client/di/ActivityInjector.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Nextcloud Android client application | ||
* | ||
* @author Chris Narkiewicz | ||
* Copyright (C) 2019 Chris Narkiewicz <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.nextcloud.client.di | ||
|
||
import android.app.Activity | ||
import android.app.Application.ActivityLifecycleCallbacks | ||
import android.os.Bundle | ||
import androidx.fragment.app.FragmentActivity | ||
import dagger.android.AndroidInjection | ||
|
||
class ActivityInjector : ActivityLifecycleCallbacks { | ||
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) { | ||
if (activity is Injectable) { | ||
AndroidInjection.inject(activity) | ||
} | ||
if (activity is FragmentActivity) { | ||
val fm = activity.supportFragmentManager | ||
fm.registerFragmentLifecycleCallbacks(FragmentInjector(), true) | ||
} | ||
} | ||
|
||
override fun onActivityStarted(activity: Activity) { | ||
// unused atm | ||
} | ||
|
||
override fun onActivityResumed(activity: Activity) { | ||
// unused atm | ||
} | ||
|
||
override fun onActivityPaused(activity: Activity) { | ||
// unused atm | ||
} | ||
|
||
override fun onActivityStopped(activity: Activity) { | ||
// unused atm | ||
} | ||
|
||
override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) { | ||
// unused atm | ||
} | ||
|
||
override fun onActivityDestroyed(activity: Activity) { | ||
// unused atm | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.