mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
GR-1 Chane project name
This commit is contained in:
Binary file not shown.
Binary file not shown.
@ -4,16 +4,16 @@
|
|||||||
"type": "APK",
|
"type": "APK",
|
||||||
"kind": "Directory"
|
"kind": "Directory"
|
||||||
},
|
},
|
||||||
"applicationId": "com.simplemobiletools.gallery.pro",
|
"applicationId": "com.gallery.raw",
|
||||||
"variantName": "fossRelease",
|
"variantName": "fossRelease",
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 388,
|
"versionCode": 389,
|
||||||
"versionName": "6.26.7",
|
"versionName": "6.26.7",
|
||||||
"outputFile": "gallery-388-foss-release.apk"
|
"outputFile": "gallery-389-foss-release.apk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"elementType": "File"
|
"elementType": "File"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
package="com.simplemobiletools.gallery.pro"
|
package="com.gallery.raw"
|
||||||
android:installLocation="auto">
|
android:installLocation="auto">
|
||||||
|
|
||||||
<!-- override the android:maxSdkVersion="28" from PhotoEditorSDK with some higher number -->
|
<!-- override the android:maxSdkVersion="28" from PhotoEditorSDK with some higher number -->
|
||||||
@ -35,8 +35,8 @@
|
|||||||
<uses-sdk tools:overrideLibrary="com.google.vr.widgets.common, com.google.vr.sdk.widgets.pano" />
|
<uses-sdk tools:overrideLibrary="com.google.vr.widgets.common, com.google.vr.sdk.widgets.pano" />
|
||||||
|
|
||||||
<queries>
|
<queries>
|
||||||
<package android:name="com.simplemobiletools.gallery.debug" />
|
<package android:name="com.gallery.raw.debug" />
|
||||||
<package android:name="com.simplemobiletools.gallery" />
|
<package android:name="com.gallery.raw" />
|
||||||
</queries>
|
</queries>
|
||||||
|
|
||||||
<uses-feature
|
<uses-feature
|
||||||
@ -44,7 +44,7 @@
|
|||||||
android:required="false" />
|
android:required="false" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".App"
|
android:name="com.gallery.raw.App"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:appCategory="image"
|
android:appCategory="image"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
@ -56,7 +56,7 @@
|
|||||||
tools:replace="android:label">
|
tools:replace="android:label">
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.SplashActivity"
|
android:name="com.gallery.raw.activities.SplashActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:theme="@style/SplashTheme">
|
android:theme="@style/SplashTheme">
|
||||||
|
|
||||||
@ -68,7 +68,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.MainActivity"
|
android:name="com.gallery.raw.activities.MainActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:resizeableActivity="true">
|
android:resizeableActivity="true">
|
||||||
@ -97,24 +97,24 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.MediaActivity"
|
android:name="com.gallery.raw.activities.MediaActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:parentActivityName=".activities.MainActivity" />
|
android:parentActivityName="com.gallery.raw.activities.MainActivity" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.SearchActivity"
|
android:name="com.gallery.raw.activities.SearchActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/search"
|
android:label="@string/search"
|
||||||
android:parentActivityName=".activities.MainActivity"
|
android:parentActivityName="com.gallery.raw.activities.MainActivity"
|
||||||
android:resizeableActivity="true" />
|
android:resizeableActivity="true" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.ViewPagerActivity"
|
android:name="com.gallery.raw.activities.ViewPagerActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:parentActivityName=".activities.MediaActivity"
|
android:parentActivityName="com.gallery.raw.activities.MediaActivity"
|
||||||
android:theme="@style/TranslucentTheme">
|
android:theme="@style/TranslucentTheme">
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
@ -140,21 +140,21 @@
|
|||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/about"
|
android:label="@string/about"
|
||||||
android:parentActivityName=".activities.MainActivity" />
|
android:parentActivityName="com.gallery.raw.activities.MainActivity" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name="com.simplemobiletools.commons.activities.CustomizationActivity"
|
android:name="com.simplemobiletools.commons.activities.CustomizationActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/customize_colors"
|
android:label="@string/customize_colors"
|
||||||
android:parentActivityName=".activities.SettingsActivity" />
|
android:parentActivityName="com.gallery.raw.activities.SettingsActivity" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.SettingsActivity"
|
android:name="com.gallery.raw.activities.SettingsActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/settings"
|
android:label="@string/settings"
|
||||||
android:parentActivityName=".activities.MainActivity">
|
android:parentActivityName="com.gallery.raw.activities.MainActivity">
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
|
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
|
||||||
@ -163,53 +163,53 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.PhotoVideoActivity"
|
android:name="com.gallery.raw.activities.PhotoVideoActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/TranslucentTheme" />
|
android:theme="@style/TranslucentTheme" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.VideoPlayerActivity"
|
android:name="com.gallery.raw.activities.VideoPlayerActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:parentActivityName=".activities.MediaActivity"
|
android:parentActivityName="com.gallery.raw.activities.MediaActivity"
|
||||||
android:theme="@style/TranslucentTheme" />
|
android:theme="@style/TranslucentTheme" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.PanoramaPhotoActivity"
|
android:name="com.gallery.raw.activities.PanoramaPhotoActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/FullScreenTheme" />
|
android:theme="@style/FullScreenTheme" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.PanoramaVideoActivity"
|
android:name="com.gallery.raw.activities.PanoramaVideoActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/FullScreenTheme" />
|
android:theme="@style/FullScreenTheme" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.IncludedFoldersActivity"
|
android:name="com.gallery.raw.activities.IncludedFoldersActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/include_folders"
|
android:label="@string/include_folders"
|
||||||
android:parentActivityName=".activities.SettingsActivity" />
|
android:parentActivityName="com.gallery.raw.activities.SettingsActivity" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.ExcludedFoldersActivity"
|
android:name="com.gallery.raw.activities.ExcludedFoldersActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/excluded_folders"
|
android:label="@string/excluded_folders"
|
||||||
android:parentActivityName=".activities.SettingsActivity" />
|
android:parentActivityName="com.gallery.raw.activities.SettingsActivity" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.HiddenFoldersActivity"
|
android:name="com.gallery.raw.activities.HiddenFoldersActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/hidden_folders"
|
android:label="@string/hidden_folders"
|
||||||
android:parentActivityName=".activities.SettingsActivity" />
|
android:parentActivityName="com.gallery.raw.activities.SettingsActivity" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.PhotoActivity"
|
android:name="com.gallery.raw.activities.PhotoActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
@ -223,7 +223,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.VideoActivity"
|
android:name="com.gallery.raw.activities.VideoActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
@ -237,7 +237,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.EditActivity"
|
android:name="com.gallery.raw.activities.EditActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/basic_editor">
|
android:label="@string/basic_editor">
|
||||||
@ -261,7 +261,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.SetWallpaperActivity"
|
android:name="com.gallery.raw.activities.SetWallpaperActivity"
|
||||||
android:configChanges="orientation"
|
android:configChanges="orientation"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/simple_wallpaper">
|
android:label="@string/simple_wallpaper">
|
||||||
@ -278,7 +278,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.WidgetConfigureActivity"
|
android:name="com.gallery.raw.activities.WidgetConfigureActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:screenOrientation="portrait"
|
android:screenOrientation="portrait"
|
||||||
android:theme="@style/MyWidgetConfigTheme">
|
android:theme="@style/MyWidgetConfigTheme">
|
||||||
@ -298,7 +298,7 @@
|
|||||||
</provider>
|
</provider>
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".receivers.RefreshMediaReceiver"
|
android:name="com.gallery.raw.receivers.RefreshMediaReceiver"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.simplemobiletools.REFRESH_MEDIA" />
|
<action android:name="com.simplemobiletools.REFRESH_MEDIA" />
|
||||||
@ -306,7 +306,7 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".helpers.MyWidgetProvider"
|
android:name="com.gallery.raw.helpers.MyWidgetProvider"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@drawable/img_widget_preview"
|
android:icon="@drawable/img_widget_preview"
|
||||||
android:label="@string/folder">
|
android:label="@string/folder">
|
||||||
@ -320,7 +320,7 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".receivers.BootCompletedReceiver"
|
android:name="com.gallery.raw.receivers.BootCompletedReceiver"
|
||||||
android:enabled="true"
|
android:enabled="true"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
@ -330,7 +330,7 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".jobs.NewPhotoFetcher"
|
android:name="com.gallery.raw.jobs.NewPhotoFetcher"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:permission="android.permission.BIND_JOB_SERVICE" />
|
android:permission="android.permission.BIND_JOB_SERVICE" />
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 113 KiB |
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro
|
package com.gallery.raw
|
||||||
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
import com.github.ajalt.reprint.core.Reprint
|
import com.github.ajalt.reprint.core.Reprint
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.annotation.TargetApi
|
import android.annotation.TargetApi
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
@ -32,18 +32,25 @@ import com.simplemobiletools.commons.helpers.REAL_FILE_PATH
|
|||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.helpers.isNougatPlus
|
import com.simplemobiletools.commons.helpers.isNougatPlus
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.gallery.pro.BuildConfig
|
import com.gallery.raw.BuildConfig
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.FiltersAdapter
|
import com.gallery.raw.adapters.FiltersAdapter
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.OtherAspectRatioDialog
|
import com.gallery.raw.dialogs.OtherAspectRatioDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.ResizeDialog
|
import com.gallery.raw.dialogs.ResizeDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.SaveAsDialog
|
import com.gallery.raw.dialogs.SaveAsDialog
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.copyNonDimensionAttributesTo
|
import com.gallery.raw.extensions.copyNonDimensionAttributesTo
|
||||||
import com.simplemobiletools.gallery.pro.extensions.fixDateTaken
|
import com.gallery.raw.helpers.ASPECT_RATIO_FOUR_THREE
|
||||||
import com.simplemobiletools.gallery.pro.extensions.openEditor
|
import com.gallery.raw.helpers.ASPECT_RATIO_FREE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.ASPECT_RATIO_ONE_ONE
|
||||||
import com.simplemobiletools.gallery.pro.models.FilterItem
|
import com.gallery.raw.helpers.ASPECT_RATIO_OTHER
|
||||||
|
import com.gallery.raw.helpers.ASPECT_RATIO_SIXTEEN_NINE
|
||||||
|
import com.gallery.raw.helpers.FilterThumbnailsManager
|
||||||
|
import com.gallery.raw.helpers.getPermissionToRequest
|
||||||
|
import com.gallery.raw.extensions.fixDateTaken
|
||||||
|
import com.gallery.raw.extensions.openEditor
|
||||||
|
import com.gallery.raw.helpers.*
|
||||||
|
import com.gallery.raw.models.FilterItem
|
||||||
import com.theartofdev.edmodo.cropper.CropImageView
|
import com.theartofdev.edmodo.cropper.CropImageView
|
||||||
import com.zomato.photofilters.FilterPack
|
import com.zomato.photofilters.FilterPack
|
||||||
import com.zomato.photofilters.imageprocessors.Filter
|
import com.zomato.photofilters.imageprocessors.Filter
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||||
@ -9,9 +9,9 @@ import com.simplemobiletools.commons.extensions.isExternalStorageManager
|
|||||||
import com.simplemobiletools.commons.helpers.NavigationIcon
|
import com.simplemobiletools.commons.helpers.NavigationIcon
|
||||||
import com.simplemobiletools.commons.helpers.isRPlus
|
import com.simplemobiletools.commons.helpers.isRPlus
|
||||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.ManageFoldersAdapter
|
import com.gallery.raw.adapters.ManageFoldersAdapter
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import kotlinx.android.synthetic.main.activity_manage_folders.*
|
import kotlinx.android.synthetic.main.activity_manage_folders.*
|
||||||
|
|
||||||
class ExcludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
class ExcludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||||
@ -7,11 +7,11 @@ import com.simplemobiletools.commons.extensions.getProperTextColor
|
|||||||
import com.simplemobiletools.commons.helpers.NavigationIcon
|
import com.simplemobiletools.commons.helpers.NavigationIcon
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.ManageHiddenFoldersAdapter
|
import com.gallery.raw.adapters.ManageHiddenFoldersAdapter
|
||||||
import com.simplemobiletools.gallery.pro.extensions.addNoMedia
|
import com.gallery.raw.extensions.addNoMedia
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.getNoMediaFolders
|
import com.gallery.raw.extensions.getNoMediaFolders
|
||||||
import kotlinx.android.synthetic.main.activity_manage_folders.*
|
import kotlinx.android.synthetic.main.activity_manage_folders.*
|
||||||
|
|
||||||
class HiddenFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
class HiddenFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
@ -1,13 +1,13 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import com.simplemobiletools.commons.extensions.beVisibleIf
|
import com.simplemobiletools.commons.extensions.beVisibleIf
|
||||||
import com.simplemobiletools.commons.extensions.getProperTextColor
|
import com.simplemobiletools.commons.extensions.getProperTextColor
|
||||||
import com.simplemobiletools.commons.helpers.NavigationIcon
|
import com.simplemobiletools.commons.helpers.NavigationIcon
|
||||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.ManageFoldersAdapter
|
import com.gallery.raw.adapters.ManageFoldersAdapter
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import kotlinx.android.synthetic.main.activity_manage_folders.*
|
import kotlinx.android.synthetic.main.activity_manage_folders.*
|
||||||
|
|
||||||
class IncludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
class IncludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.content.ClipData
|
import android.content.ClipData
|
||||||
@ -24,20 +24,72 @@ import com.simplemobiletools.commons.models.RadioItem
|
|||||||
import com.simplemobiletools.commons.models.Release
|
import com.simplemobiletools.commons.models.Release
|
||||||
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.BuildConfig
|
import com.gallery.raw.BuildConfig
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.DirectoryAdapter
|
import com.gallery.raw.adapters.DirectoryAdapter
|
||||||
import com.simplemobiletools.gallery.pro.databases.GalleryDatabase
|
import com.gallery.raw.databases.GalleryDatabase
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.ChangeSortingDialog
|
import com.gallery.raw.dialogs.ChangeSortingDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.ChangeViewTypeDialog
|
import com.gallery.raw.dialogs.ChangeViewTypeDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.FilterMediaDialog
|
import com.gallery.raw.dialogs.FilterMediaDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.GrantAllFilesDialog
|
import com.gallery.raw.extensions.addTempFolderIfNeeded
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.extensions.createDirectoryFromMedia
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.DirectoryOperationsListener
|
import com.gallery.raw.extensions.directoryDB
|
||||||
import com.simplemobiletools.gallery.pro.jobs.NewPhotoFetcher
|
import com.gallery.raw.extensions.getCachedDirectories
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
import com.gallery.raw.extensions.getCachedMedia
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.extensions.getDirectorySortingValue
|
||||||
|
import com.gallery.raw.extensions.getDirsToShow
|
||||||
|
import com.gallery.raw.extensions.getDistinctPath
|
||||||
|
import com.gallery.raw.extensions.getFavoritePaths
|
||||||
|
import com.gallery.raw.extensions.getNoMediaFoldersSync
|
||||||
|
import com.gallery.raw.extensions.getOTGFolderChildrenNames
|
||||||
|
import com.gallery.raw.extensions.getSortedDirectories
|
||||||
|
import com.gallery.raw.extensions.isDownloadsFolder
|
||||||
|
import com.gallery.raw.extensions.mediaDB
|
||||||
|
import com.gallery.raw.extensions.movePinnedDirectoriesToFront
|
||||||
|
import com.gallery.raw.extensions.removeInvalidDBDirectories
|
||||||
|
import com.gallery.raw.extensions.storeDirectoryItems
|
||||||
|
import com.gallery.raw.extensions.updateDBDirectory
|
||||||
|
import com.gallery.raw.extensions.updateWidgets
|
||||||
|
import com.gallery.raw.dialogs.GrantAllFilesDialog
|
||||||
|
import com.gallery.raw.extensions.handleExcludedFolderPasswordProtection
|
||||||
|
import com.gallery.raw.extensions.handleMediaManagementPrompt
|
||||||
|
import com.gallery.raw.extensions.launchAbout
|
||||||
|
import com.gallery.raw.extensions.launchCamera
|
||||||
|
import com.gallery.raw.extensions.launchSettings
|
||||||
|
import com.gallery.raw.extensions.movePathsInRecycleBin
|
||||||
|
import com.gallery.raw.extensions.openRecycleBin
|
||||||
|
import com.gallery.raw.extensions.tryDeleteFileDirItem
|
||||||
|
import com.gallery.raw.helpers.DIRECTORY
|
||||||
|
import com.gallery.raw.helpers.GET_ANY_INTENT
|
||||||
|
import com.gallery.raw.helpers.GET_IMAGE_INTENT
|
||||||
|
import com.gallery.raw.helpers.GET_VIDEO_INTENT
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.GROUP_DESCENDING
|
||||||
|
import com.gallery.raw.helpers.LOCATION_INTERNAL
|
||||||
|
import com.gallery.raw.helpers.MAX_COLUMN_COUNT
|
||||||
|
import com.gallery.raw.helpers.MONTH_MILLISECONDS
|
||||||
|
import com.gallery.raw.helpers.MediaFetcher
|
||||||
|
import com.gallery.raw.helpers.PICKED_PATHS
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.SET_WALLPAPER_INTENT
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.helpers.SHOW_TEMP_HIDDEN_DURATION
|
||||||
|
import com.gallery.raw.helpers.SKIP_AUTHENTICATION
|
||||||
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
|
import com.gallery.raw.helpers.getDefaultFileFilter
|
||||||
|
import com.gallery.raw.helpers.getPermissionToRequest
|
||||||
|
import com.gallery.raw.interfaces.DirectoryOperationsListener
|
||||||
|
import com.gallery.raw.jobs.NewPhotoFetcher
|
||||||
|
import com.gallery.raw.models.Directory
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
import kotlinx.android.synthetic.main.activity_main.*
|
import kotlinx.android.synthetic.main.activity_main.*
|
||||||
import java.io.*
|
import java.io.*
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.app.WallpaperManager
|
import android.app.WallpaperManager
|
||||||
@ -25,17 +25,57 @@ import com.simplemobiletools.commons.models.FileDirItem
|
|||||||
import com.simplemobiletools.commons.models.RadioItem
|
import com.simplemobiletools.commons.models.RadioItem
|
||||||
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.MediaAdapter
|
import com.gallery.raw.adapters.MediaAdapter
|
||||||
import com.simplemobiletools.gallery.pro.asynctasks.GetMediaAsynctask
|
import com.gallery.raw.dialogs.ChangeGroupingDialog
|
||||||
import com.simplemobiletools.gallery.pro.databases.GalleryDatabase
|
import com.gallery.raw.dialogs.FilterMediaDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.*
|
import com.gallery.raw.dialogs.GrantAllFilesDialog
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.extensions.deleteDBPath
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.MediaOperationsListener
|
import com.gallery.raw.extensions.directoryDB
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.extensions.getCachedMedia
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.extensions.getHumanizedFilename
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailSection
|
import com.gallery.raw.extensions.isDownloadsFolder
|
||||||
|
import com.gallery.raw.extensions.mediaDB
|
||||||
|
import com.gallery.raw.extensions.updateWidgets
|
||||||
|
import com.gallery.raw.asynctasks.GetMediaAsynctask
|
||||||
|
import com.gallery.raw.helpers.DIRECTORY
|
||||||
|
import com.gallery.raw.helpers.GET_ANY_INTENT
|
||||||
|
import com.gallery.raw.helpers.GET_IMAGE_INTENT
|
||||||
|
import com.gallery.raw.helpers.GET_VIDEO_INTENT
|
||||||
|
import com.gallery.raw.helpers.GridSpacingItemDecoration
|
||||||
|
import com.gallery.raw.helpers.IS_IN_RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.MAX_COLUMN_COUNT
|
||||||
|
import com.gallery.raw.helpers.MediaFetcher
|
||||||
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.PICKED_PATHS
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.SET_WALLPAPER_INTENT
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.helpers.SHOW_FAVORITES
|
||||||
|
import com.gallery.raw.helpers.SHOW_RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.SHOW_TEMP_HIDDEN_DURATION
|
||||||
|
import com.gallery.raw.helpers.SKIP_AUTHENTICATION
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_START_ON_ENTER
|
||||||
|
import com.gallery.raw.helpers.getPermissionToRequest
|
||||||
|
import com.gallery.raw.databases.GalleryDatabase
|
||||||
|
import com.gallery.raw.dialogs.ChangeSortingDialog
|
||||||
|
import com.gallery.raw.dialogs.ChangeViewTypeDialog
|
||||||
|
import com.gallery.raw.extensions.emptyAndDisableTheRecycleBin
|
||||||
|
import com.gallery.raw.extensions.emptyTheRecycleBin
|
||||||
|
import com.gallery.raw.extensions.launchAbout
|
||||||
|
import com.gallery.raw.extensions.launchCamera
|
||||||
|
import com.gallery.raw.extensions.launchSettings
|
||||||
|
import com.gallery.raw.extensions.movePathsInRecycleBin
|
||||||
|
import com.gallery.raw.extensions.openPath
|
||||||
|
import com.gallery.raw.extensions.openRecycleBin
|
||||||
|
import com.gallery.raw.extensions.restoreRecycleBinPaths
|
||||||
|
import com.gallery.raw.extensions.showRecycleBinEmptyingDialog
|
||||||
|
import com.gallery.raw.extensions.tryDeleteFileDirItem
|
||||||
|
import com.gallery.raw.interfaces.MediaOperationsListener
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
|
import com.gallery.raw.models.ThumbnailSection
|
||||||
import kotlinx.android.synthetic.main.activity_media.*
|
import kotlinx.android.synthetic.main.activity_media.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.IOException
|
import java.io.IOException
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
@ -15,11 +15,11 @@ import com.google.vr.sdk.widgets.pano.VrPanoramaView
|
|||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.helpers.isRPlus
|
import com.simplemobiletools.commons.helpers.isRPlus
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.hideSystemUI
|
import com.gallery.raw.extensions.hideSystemUI
|
||||||
import com.simplemobiletools.gallery.pro.extensions.showSystemUI
|
import com.gallery.raw.extensions.showSystemUI
|
||||||
import com.simplemobiletools.gallery.pro.helpers.PATH
|
import com.gallery.raw.helpers.PATH
|
||||||
import kotlinx.android.synthetic.main.activity_panorama_photo.*
|
import kotlinx.android.synthetic.main.activity_panorama_photo.*
|
||||||
|
|
||||||
open class PanoramaPhotoActivity : SimpleActivity() {
|
open class PanoramaPhotoActivity : SimpleActivity() {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
@ -15,13 +15,13 @@ import com.google.vr.sdk.widgets.video.VrVideoEventListener
|
|||||||
import com.google.vr.sdk.widgets.video.VrVideoView
|
import com.google.vr.sdk.widgets.video.VrVideoView
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.isRPlus
|
import com.simplemobiletools.commons.helpers.isRPlus
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.hasNavBar
|
import com.gallery.raw.extensions.hasNavBar
|
||||||
import com.simplemobiletools.gallery.pro.extensions.hideSystemUI
|
import com.gallery.raw.extensions.hideSystemUI
|
||||||
import com.simplemobiletools.gallery.pro.extensions.showSystemUI
|
import com.gallery.raw.extensions.showSystemUI
|
||||||
import com.simplemobiletools.gallery.pro.helpers.MIN_SKIP_LENGTH
|
import com.gallery.raw.helpers.MIN_SKIP_LENGTH
|
||||||
import com.simplemobiletools.gallery.pro.helpers.PATH
|
import com.gallery.raw.helpers.PATH
|
||||||
import kotlinx.android.synthetic.main.activity_panorama_video.*
|
import kotlinx.android.synthetic.main.activity_panorama_video.*
|
||||||
import kotlinx.android.synthetic.main.bottom_video_time_holder.*
|
import kotlinx.android.synthetic.main.bottom_video_time_holder.*
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
@ -10,17 +10,42 @@ import android.provider.MediaStore
|
|||||||
import android.text.Html
|
import android.text.Html
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
|
import com.gallery.raw.extensions.config
|
||||||
|
import com.gallery.raw.extensions.hideSystemUI
|
||||||
|
import com.gallery.raw.extensions.openEditor
|
||||||
|
import com.gallery.raw.extensions.openPath
|
||||||
|
import com.gallery.raw.extensions.parseFileChannel
|
||||||
|
import com.gallery.raw.extensions.setAs
|
||||||
|
import com.gallery.raw.extensions.sharePath
|
||||||
|
import com.gallery.raw.extensions.showFileOnMap
|
||||||
|
import com.gallery.raw.extensions.showSystemUI
|
||||||
import com.simplemobiletools.commons.dialogs.PropertiesDialog
|
import com.simplemobiletools.commons.dialogs.PropertiesDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.gallery.pro.BuildConfig
|
import com.gallery.raw.BuildConfig
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.fragments.PhotoFragment
|
||||||
import com.simplemobiletools.gallery.pro.fragments.PhotoFragment
|
import com.gallery.raw.helpers.BOTTOM_ACTION_EDIT
|
||||||
import com.simplemobiletools.gallery.pro.fragments.VideoFragment
|
import com.gallery.raw.helpers.BOTTOM_ACTION_PROPERTIES
|
||||||
import com.simplemobiletools.gallery.pro.fragments.ViewPagerFragment
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SET_AS
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SHARE
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SHOW_ON_MAP
|
||||||
|
import com.gallery.raw.helpers.IS_IN_RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.IS_VIEW_INTENT
|
||||||
|
import com.gallery.raw.helpers.MEDIUM
|
||||||
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.SHOW_FAVORITES
|
||||||
|
import com.gallery.raw.helpers.SKIP_AUTHENTICATION
|
||||||
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_PORTRAITS
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
|
import com.gallery.raw.helpers.getPermissionToRequest
|
||||||
|
import com.gallery.raw.fragments.VideoFragment
|
||||||
|
import com.gallery.raw.fragments.ViewPagerFragment
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
import kotlinx.android.synthetic.main.bottom_actions.*
|
import kotlinx.android.synthetic.main.bottom_actions.*
|
||||||
import kotlinx.android.synthetic.main.fragment_holder.*
|
import kotlinx.android.synthetic.main.fragment_holder.*
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -11,17 +11,21 @@ import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
|||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.MediaAdapter
|
import com.gallery.raw.adapters.MediaAdapter
|
||||||
import com.simplemobiletools.gallery.pro.asynctasks.GetMediaAsynctask
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.extensions.deleteDBPath
|
||||||
import com.simplemobiletools.gallery.pro.helpers.GridSpacingItemDecoration
|
import com.gallery.raw.extensions.getCachedMedia
|
||||||
import com.simplemobiletools.gallery.pro.helpers.MediaFetcher
|
import com.gallery.raw.asynctasks.GetMediaAsynctask
|
||||||
import com.simplemobiletools.gallery.pro.helpers.PATH
|
import com.gallery.raw.extensions.movePathsInRecycleBin
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SHOW_ALL
|
import com.gallery.raw.extensions.openPath
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.MediaOperationsListener
|
import com.gallery.raw.helpers.GridSpacingItemDecoration
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.helpers.MediaFetcher
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.interfaces.MediaOperationsListener
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
import kotlinx.android.synthetic.main.activity_search.*
|
import kotlinx.android.synthetic.main.activity_search.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.app.WallpaperManager
|
import android.app.WallpaperManager
|
||||||
@ -13,7 +13,7 @@ import com.simplemobiletools.commons.helpers.NavigationIcon
|
|||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.helpers.isNougatPlus
|
import com.simplemobiletools.commons.helpers.isNougatPlus
|
||||||
import com.simplemobiletools.commons.models.RadioItem
|
import com.simplemobiletools.commons.models.RadioItem
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.theartofdev.edmodo.cropper.CropImageView
|
import com.theartofdev.edmodo.cropper.CropImageView
|
||||||
import kotlinx.android.synthetic.main.activity_set_wallpaper.*
|
import kotlinx.android.synthetic.main.activity_set_wallpaper.*
|
||||||
import kotlinx.android.synthetic.main.bottom_set_wallpaper_actions.*
|
import kotlinx.android.synthetic.main.bottom_set_wallpaper_actions.*
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.content.ActivityNotFoundException
|
import android.content.ActivityNotFoundException
|
||||||
@ -6,18 +6,103 @@ import android.content.Intent
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
|
import com.gallery.raw.dialogs.ChangeFileThumbnailStyleDialog
|
||||||
|
import com.gallery.raw.dialogs.ChangeFolderThumbnailStyleDialog
|
||||||
|
import com.gallery.raw.dialogs.ExportFavoritesDialog
|
||||||
|
import com.gallery.raw.dialogs.GrantAllFilesDialog
|
||||||
|
import com.gallery.raw.dialogs.ManageBottomActionsDialog
|
||||||
|
import com.gallery.raw.dialogs.ManageExtendedDetailsDialog
|
||||||
|
import com.gallery.raw.extensions.config
|
||||||
|
import com.gallery.raw.extensions.emptyTheRecycleBin
|
||||||
|
import com.gallery.raw.extensions.favoritesDB
|
||||||
|
import com.gallery.raw.extensions.handleExcludedFolderPasswordProtection
|
||||||
|
import com.gallery.raw.extensions.handleMediaManagementPrompt
|
||||||
|
import com.gallery.raw.extensions.mediaDB
|
||||||
|
import com.gallery.raw.extensions.showRecycleBinEmptyingDialog
|
||||||
|
import com.gallery.raw.helpers.ALBUM_COVERS
|
||||||
|
import com.gallery.raw.helpers.ALLOW_DOWN_GESTURE
|
||||||
|
import com.gallery.raw.helpers.ALLOW_INSTANT_CHANGE
|
||||||
|
import com.gallery.raw.helpers.ALLOW_ONE_TO_ONE_ZOOM
|
||||||
|
import com.gallery.raw.helpers.ALLOW_PHOTO_GESTURES
|
||||||
|
import com.gallery.raw.helpers.ALLOW_ROTATING_WITH_GESTURES
|
||||||
|
import com.gallery.raw.helpers.ALLOW_VIDEO_GESTURES
|
||||||
|
import com.gallery.raw.helpers.ALLOW_ZOOMING_IMAGES
|
||||||
|
import com.gallery.raw.helpers.ANIMATE_GIFS
|
||||||
|
import com.gallery.raw.helpers.AUTOPLAY_VIDEOS
|
||||||
|
import com.gallery.raw.helpers.BLACK_BACKGROUND
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTIONS
|
||||||
|
import com.gallery.raw.helpers.CROP_THUMBNAILS
|
||||||
|
import com.gallery.raw.helpers.DEFAULT_BOTTOM_ACTIONS
|
||||||
|
import com.gallery.raw.helpers.DELETE_EMPTY_FOLDERS
|
||||||
|
import com.gallery.raw.helpers.DIRECTORY_SORT_ORDER
|
||||||
|
import com.gallery.raw.helpers.DIR_COLUMN_CNT
|
||||||
|
import com.gallery.raw.helpers.DISPLAY_FILE_NAMES
|
||||||
|
import com.gallery.raw.helpers.EDITOR_BRUSH_COLOR
|
||||||
|
import com.gallery.raw.helpers.EDITOR_BRUSH_HARDNESS
|
||||||
|
import com.gallery.raw.helpers.EDITOR_BRUSH_SIZE
|
||||||
|
import com.gallery.raw.helpers.EXCLUDED_FOLDERS
|
||||||
|
import com.gallery.raw.helpers.EXTENDED_DETAILS
|
||||||
|
import com.gallery.raw.helpers.FILE_LOADING_PRIORITY
|
||||||
|
import com.gallery.raw.helpers.FILE_ROUNDED_CORNERS
|
||||||
|
import com.gallery.raw.helpers.FILTER_MEDIA
|
||||||
|
import com.gallery.raw.helpers.FOLDER_MEDIA_COUNT
|
||||||
|
import com.gallery.raw.helpers.FOLDER_STYLE_SQUARE
|
||||||
|
import com.gallery.raw.helpers.FOLDER_THUMBNAIL_STYLE
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY
|
||||||
|
import com.gallery.raw.helpers.GROUP_DIRECT_SUBFOLDERS
|
||||||
|
import com.gallery.raw.helpers.HIDE_EXTENDED_DETAILS
|
||||||
|
import com.gallery.raw.helpers.HIDE_SYSTEM_UI
|
||||||
|
import com.gallery.raw.helpers.INCLUDED_FOLDERS
|
||||||
|
import com.gallery.raw.helpers.LAST_EDITOR_CROP_ASPECT_RATIO
|
||||||
|
import com.gallery.raw.helpers.LAST_EDITOR_CROP_OTHER_ASPECT_RATIO_X
|
||||||
|
import com.gallery.raw.helpers.LAST_EDITOR_CROP_OTHER_ASPECT_RATIO_Y
|
||||||
|
import com.gallery.raw.helpers.LIMIT_FOLDER_TITLE
|
||||||
|
import com.gallery.raw.helpers.LOOP_VIDEOS
|
||||||
|
import com.gallery.raw.helpers.MARK_FAVORITE_ITEMS
|
||||||
|
import com.gallery.raw.helpers.MAX_BRIGHTNESS
|
||||||
|
import com.gallery.raw.helpers.MEDIA_COLUMN_CNT
|
||||||
|
import com.gallery.raw.helpers.OPEN_VIDEOS_ON_SEPARATE_SCREEN
|
||||||
|
import com.gallery.raw.helpers.PINNED_FOLDERS
|
||||||
|
import com.gallery.raw.helpers.PRIORITY_COMPROMISE
|
||||||
|
import com.gallery.raw.helpers.PRIORITY_SPEED
|
||||||
|
import com.gallery.raw.helpers.PRIORITY_VALIDITY
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.REMEMBER_LAST_VIDEO_POSITION
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_ASPECT_RATIO
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_DEVICE_ROTATION
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_SYSTEM_SETTING
|
||||||
|
import com.gallery.raw.helpers.SCREEN_ROTATION
|
||||||
|
import com.gallery.raw.helpers.SEARCH_ALL_FILES_BY_DEFAULT
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.helpers.SHOW_EXTENDED_DETAILS
|
||||||
|
import com.gallery.raw.helpers.SHOW_HIDDEN_MEDIA
|
||||||
|
import com.gallery.raw.helpers.SHOW_HIGHEST_QUALITY
|
||||||
|
import com.gallery.raw.helpers.SHOW_NOTCH
|
||||||
|
import com.gallery.raw.helpers.SHOW_RECYCLE_BIN_AT_FOLDERS
|
||||||
|
import com.gallery.raw.helpers.SHOW_RECYCLE_BIN_LAST
|
||||||
|
import com.gallery.raw.helpers.SHOW_THUMBNAIL_FILE_TYPES
|
||||||
|
import com.gallery.raw.helpers.SHOW_THUMBNAIL_VIDEO_DURATION
|
||||||
|
import com.gallery.raw.helpers.SHOW_WIDGET_FOLDER_NAME
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_INCLUDE_GIFS
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_INCLUDE_VIDEOS
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_INTERVAL
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_LOOP
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_MOVE_BACKWARDS
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_RANDOM_ORDER
|
||||||
|
import com.gallery.raw.helpers.THUMBNAIL_SPACING
|
||||||
|
import com.gallery.raw.helpers.USE_RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.VIEW_TYPE_FILES
|
||||||
|
import com.gallery.raw.helpers.VIEW_TYPE_FOLDERS
|
||||||
|
import com.gallery.raw.helpers.VISIBLE_BOTTOM_ACTIONS
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.google.gson.reflect.TypeToken
|
import com.google.gson.reflect.TypeToken
|
||||||
import com.simplemobiletools.commons.dialogs.*
|
import com.simplemobiletools.commons.dialogs.*
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.models.RadioItem
|
import com.simplemobiletools.commons.models.RadioItem
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.*
|
import com.gallery.raw.helpers.FavoritesProxy.Companion.getFavoriteFromPath
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.models.AlbumCover
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
|
||||||
import com.simplemobiletools.gallery.pro.helpers.FavoritesProxy.Companion.getFavoriteFromPath
|
|
||||||
import com.simplemobiletools.gallery.pro.models.AlbumCover
|
|
||||||
import kotlinx.android.synthetic.main.activity_settings.*
|
import kotlinx.android.synthetic.main.activity_settings.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.database.ContentObserver
|
import android.database.ContentObserver
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
@ -12,10 +12,10 @@ import com.simplemobiletools.commons.extensions.getRealPathFromURI
|
|||||||
import com.simplemobiletools.commons.extensions.scanPathRecursively
|
import com.simplemobiletools.commons.extensions.scanPathRecursively
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.helpers.isPiePlus
|
import com.simplemobiletools.commons.helpers.isPiePlus
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.addPathToDB
|
import com.gallery.raw.extensions.addPathToDB
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.updateDirectoryPath
|
import com.gallery.raw.extensions.updateDirectoryPath
|
||||||
|
|
||||||
open class SimpleActivity : BaseSimpleActivity() {
|
open class SimpleActivity : BaseSimpleActivity() {
|
||||||
val observer = object : ContentObserver(null) {
|
val observer = object : ContentObserver(null) {
|
@ -1,13 +1,13 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import com.simplemobiletools.commons.activities.BaseSplashActivity
|
import com.simplemobiletools.commons.activities.BaseSplashActivity
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.favoritesDB
|
import com.gallery.raw.extensions.favoritesDB
|
||||||
import com.simplemobiletools.gallery.pro.extensions.mediaDB
|
import com.gallery.raw.extensions.mediaDB
|
||||||
import com.simplemobiletools.gallery.pro.helpers.FavoritesProxy
|
import com.gallery.raw.helpers.FavoritesProxy
|
||||||
import com.simplemobiletools.gallery.pro.models.Favorite
|
import com.gallery.raw.models.Favorite
|
||||||
|
|
||||||
class SplashActivity : BaseSplashActivity() {
|
class SplashActivity : BaseSplashActivity() {
|
||||||
override fun initActivity() {
|
override fun initActivity() {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
@ -15,6 +15,23 @@ import android.util.DisplayMetrics
|
|||||||
import android.view.*
|
import android.view.*
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
import android.widget.SeekBar
|
import android.widget.SeekBar
|
||||||
|
import com.gallery.raw.extensions.config
|
||||||
|
import com.gallery.raw.extensions.hasNavBar
|
||||||
|
import com.gallery.raw.extensions.hideSystemUI
|
||||||
|
import com.gallery.raw.extensions.openPath
|
||||||
|
import com.gallery.raw.extensions.shareMediumPath
|
||||||
|
import com.gallery.raw.extensions.showSystemUI
|
||||||
|
import com.gallery.raw.helpers.DRAG_THRESHOLD
|
||||||
|
import com.gallery.raw.helpers.FAST_FORWARD_VIDEO_MS
|
||||||
|
import com.gallery.raw.helpers.GO_TO_NEXT_ITEM
|
||||||
|
import com.gallery.raw.helpers.GO_TO_PREV_ITEM
|
||||||
|
import com.gallery.raw.helpers.HIDE_SYSTEM_UI_DELAY
|
||||||
|
import com.gallery.raw.helpers.MAX_CLOSE_DOWN_GESTURE_DURATION
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_ASPECT_RATIO
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_DEVICE_ROTATION
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_SYSTEM_SETTING
|
||||||
|
import com.gallery.raw.helpers.SHOW_NEXT_ITEM
|
||||||
|
import com.gallery.raw.helpers.SHOW_PREV_ITEM
|
||||||
import com.google.android.exoplayer2.*
|
import com.google.android.exoplayer2.*
|
||||||
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
|
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
|
||||||
import com.google.android.exoplayer2.source.ExtractorMediaSource
|
import com.google.android.exoplayer2.source.ExtractorMediaSource
|
||||||
@ -26,9 +43,7 @@ import com.google.android.exoplayer2.upstream.DataSpec
|
|||||||
import com.google.android.exoplayer2.video.VideoListener
|
import com.google.android.exoplayer2.video.VideoListener
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
|
||||||
import kotlinx.android.synthetic.main.activity_video_player.*
|
import kotlinx.android.synthetic.main.activity_video_player.*
|
||||||
import kotlinx.android.synthetic.main.bottom_video_time_holder.*
|
import kotlinx.android.synthetic.main.bottom_video_time_holder.*
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.animation.Animator
|
import android.animation.Animator
|
||||||
import android.animation.ValueAnimator
|
import android.animation.ValueAnimator
|
||||||
@ -37,26 +37,99 @@ import com.bumptech.glide.load.engine.GlideException
|
|||||||
import com.bumptech.glide.request.RequestListener
|
import com.bumptech.glide.request.RequestListener
|
||||||
import com.bumptech.glide.request.RequestOptions
|
import com.bumptech.glide.request.RequestOptions
|
||||||
import com.bumptech.glide.request.target.Target
|
import com.bumptech.glide.request.target.Target
|
||||||
|
import com.gallery.raw.extensions.copyNonDimensionAttributesTo
|
||||||
import com.simplemobiletools.commons.dialogs.PropertiesDialog
|
import com.simplemobiletools.commons.dialogs.PropertiesDialog
|
||||||
import com.simplemobiletools.commons.dialogs.RenameItemDialog
|
import com.simplemobiletools.commons.dialogs.RenameItemDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.gallery.pro.BuildConfig
|
import com.gallery.raw.BuildConfig
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.MyPagerAdapter
|
import com.gallery.raw.adapters.MyPagerAdapter
|
||||||
import com.simplemobiletools.gallery.pro.asynctasks.GetMediaAsynctask
|
import com.gallery.raw.asynctasks.GetMediaAsynctask
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.DeleteWithRememberDialog
|
import com.gallery.raw.dialogs.DeleteWithRememberDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.ResizeWithPathDialog
|
import com.gallery.raw.dialogs.ResizeWithPathDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.SaveAsDialog
|
import com.gallery.raw.dialogs.SaveAsDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.SlideshowDialog
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.extensions.getFavoritePaths
|
||||||
import com.simplemobiletools.gallery.pro.fragments.PhotoFragment
|
import com.gallery.raw.extensions.isDownloadsFolder
|
||||||
import com.simplemobiletools.gallery.pro.fragments.VideoFragment
|
import com.gallery.raw.extensions.mediaDB
|
||||||
import com.simplemobiletools.gallery.pro.fragments.ViewPagerFragment
|
import com.gallery.raw.extensions.updateDBMediaPath
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.extensions.updateFavorite
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.dialogs.SlideshowDialog
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.extensions.fixDateTaken
|
||||||
|
import com.gallery.raw.extensions.getShortcutImage
|
||||||
|
import com.gallery.raw.extensions.handleMediaManagementPrompt
|
||||||
|
import com.gallery.raw.extensions.hideSystemUI
|
||||||
|
import com.gallery.raw.extensions.launchSettings
|
||||||
|
import com.gallery.raw.extensions.movePathsInRecycleBin
|
||||||
|
import com.gallery.raw.extensions.openEditor
|
||||||
|
import com.gallery.raw.extensions.openPath
|
||||||
|
import com.gallery.raw.extensions.restoreRecycleBinPath
|
||||||
|
import com.gallery.raw.extensions.saveRotatedImageToFile
|
||||||
|
import com.gallery.raw.extensions.setAs
|
||||||
|
import com.gallery.raw.extensions.shareMediumPath
|
||||||
|
import com.gallery.raw.extensions.showFileOnMap
|
||||||
|
import com.gallery.raw.extensions.showSystemUI
|
||||||
|
import com.gallery.raw.extensions.toggleFileVisibility
|
||||||
|
import com.gallery.raw.extensions.tryCopyMoveFilesTo
|
||||||
|
import com.gallery.raw.extensions.tryDeleteFileDirItem
|
||||||
|
import com.gallery.raw.extensions.updateFavoritePaths
|
||||||
|
import com.gallery.raw.extensions.*
|
||||||
|
import com.gallery.raw.fragments.PhotoFragment
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_CHANGE_ORIENTATION
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_COPY
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_DELETE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_EDIT
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_MOVE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_PROPERTIES
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_RENAME
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_RESIZE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_ROTATE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SET_AS
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SHARE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SHOW_ON_MAP
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SLIDESHOW
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_TOGGLE_FAVORITE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_TOGGLE_VISIBILITY
|
||||||
|
import com.gallery.raw.helpers.DefaultPageTransformer
|
||||||
|
import com.gallery.raw.helpers.FadePageTransformer
|
||||||
|
import com.gallery.raw.helpers.GO_TO_NEXT_ITEM
|
||||||
|
import com.gallery.raw.helpers.GO_TO_PREV_ITEM
|
||||||
|
import com.gallery.raw.helpers.HIDE_SYSTEM_UI_DELAY
|
||||||
|
import com.gallery.raw.helpers.IS_VIEW_INTENT
|
||||||
|
import com.gallery.raw.helpers.MAX_PRINT_SIDE_SIZE
|
||||||
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.PORTRAIT_PATH
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_ASPECT_RATIO
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_DEVICE_ROTATION
|
||||||
|
import com.gallery.raw.helpers.ROTATE_BY_SYSTEM_SETTING
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.helpers.SHOW_FAVORITES
|
||||||
|
import com.gallery.raw.helpers.SHOW_NEXT_ITEM
|
||||||
|
import com.gallery.raw.helpers.SHOW_PREV_ITEM
|
||||||
|
import com.gallery.raw.helpers.SHOW_RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.SKIP_AUTHENTICATION
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_ANIMATION_FADE
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_ANIMATION_NONE
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_ANIMATION_SLIDE
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_DEFAULT_INTERVAL
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_FADE_DURATION
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_SLIDE_DURATION
|
||||||
|
import com.gallery.raw.helpers.SLIDESHOW_START_ON_ENTER
|
||||||
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_PORTRAITS
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
|
import com.gallery.raw.helpers.getPermissionToRequest
|
||||||
|
import com.gallery.raw.fragments.VideoFragment
|
||||||
|
import com.gallery.raw.fragments.ViewPagerFragment
|
||||||
|
import com.gallery.raw.helpers.*
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
import kotlinx.android.synthetic.main.activity_medium.*
|
import kotlinx.android.synthetic.main.activity_medium.*
|
||||||
import kotlinx.android.synthetic.main.bottom_actions.*
|
import kotlinx.android.synthetic.main.bottom_actions.*
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.activities
|
package com.gallery.raw.activities
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.appwidget.AppWidgetManager
|
import android.appwidget.AppWidgetManager
|
||||||
@ -9,16 +9,21 @@ import android.graphics.drawable.ColorDrawable
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.widget.RemoteViews
|
import android.widget.RemoteViews
|
||||||
import com.bumptech.glide.signature.ObjectKey
|
import com.bumptech.glide.signature.ObjectKey
|
||||||
|
import com.gallery.raw.extensions.config
|
||||||
|
import com.gallery.raw.extensions.directoryDB
|
||||||
|
import com.gallery.raw.extensions.getCachedDirectories
|
||||||
|
import com.gallery.raw.extensions.getFolderNameFromPath
|
||||||
|
import com.gallery.raw.extensions.loadJpg
|
||||||
|
import com.gallery.raw.extensions.widgetsDB
|
||||||
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
|
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.PickDirectoryDialog
|
import com.gallery.raw.dialogs.PickDirectoryDialog
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.helpers.MyWidgetProvider
|
||||||
import com.simplemobiletools.gallery.pro.helpers.MyWidgetProvider
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_NONE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.ROUNDED_CORNERS_NONE
|
import com.gallery.raw.models.Directory
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
import com.gallery.raw.models.Widget
|
||||||
import com.simplemobiletools.gallery.pro.models.Widget
|
|
||||||
import kotlinx.android.synthetic.main.activity_widget_config.*
|
import kotlinx.android.synthetic.main.activity_widget_config.*
|
||||||
|
|
||||||
class WidgetConfigureActivity : SimpleActivity() {
|
class WidgetConfigureActivity : SimpleActivity() {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.adapters
|
package com.gallery.raw.adapters
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.pm.ShortcutInfo
|
import android.content.pm.ShortcutInfo
|
||||||
@ -29,16 +29,47 @@ import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
|
|||||||
import com.simplemobiletools.commons.interfaces.StartReorderDragListener
|
import com.simplemobiletools.commons.interfaces.StartReorderDragListener
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.MediaActivity
|
import com.gallery.raw.activities.MediaActivity
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.ConfirmDeleteFolderDialog
|
import com.gallery.raw.dialogs.ConfirmDeleteFolderDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.ExcludeFolderDialog
|
import com.gallery.raw.dialogs.ExcludeFolderDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.PickMediumDialog
|
import com.gallery.raw.dialogs.PickMediumDialog
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.extensions.addNoMedia
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.extensions.checkAppendingHidden
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.DirectoryOperationsListener
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.models.AlbumCover
|
import com.gallery.raw.extensions.directoryDB
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
import com.gallery.raw.extensions.emptyAndDisableTheRecycleBin
|
||||||
|
import com.gallery.raw.extensions.emptyTheRecycleBin
|
||||||
|
import com.gallery.raw.extensions.favoritesDB
|
||||||
|
import com.gallery.raw.extensions.fixDateTaken
|
||||||
|
import com.gallery.raw.extensions.getShortcutImage
|
||||||
|
import com.gallery.raw.extensions.loadImage
|
||||||
|
import com.gallery.raw.extensions.mediaDB
|
||||||
|
import com.gallery.raw.extensions.removeNoMedia
|
||||||
|
import com.gallery.raw.extensions.showRecycleBinEmptyingDialog
|
||||||
|
import com.gallery.raw.extensions.tryCopyMoveFilesTo
|
||||||
|
import com.gallery.raw.helpers.DIRECTORY
|
||||||
|
import com.gallery.raw.helpers.FOLDER_MEDIA_CNT_BRACKETS
|
||||||
|
import com.gallery.raw.helpers.FOLDER_MEDIA_CNT_LINE
|
||||||
|
import com.gallery.raw.helpers.FOLDER_STYLE_ROUNDED_CORNERS
|
||||||
|
import com.gallery.raw.helpers.FOLDER_STYLE_SQUARE
|
||||||
|
import com.gallery.raw.helpers.LOCATION_INTERNAL
|
||||||
|
import com.gallery.raw.helpers.LOCATION_SD
|
||||||
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_BIG
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_NONE
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_SMALL
|
||||||
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
|
import com.gallery.raw.extensions.*
|
||||||
|
import com.gallery.raw.helpers.*
|
||||||
|
import com.gallery.raw.interfaces.DirectoryOperationsListener
|
||||||
|
import com.gallery.raw.models.AlbumCover
|
||||||
|
import com.gallery.raw.models.Directory
|
||||||
import kotlinx.android.synthetic.main.directory_item_grid_square.view.*
|
import kotlinx.android.synthetic.main.directory_item_grid_square.view.*
|
||||||
import kotlinx.android.synthetic.main.directory_item_grid_square.view.dir_check
|
import kotlinx.android.synthetic.main.directory_item_grid_square.view.dir_check
|
||||||
import kotlinx.android.synthetic.main.directory_item_grid_square.view.dir_location
|
import kotlinx.android.synthetic.main.directory_item_grid_square.view.dir_location
|
@ -1,12 +1,12 @@
|
|||||||
package com.simplemobiletools.gallery.pro.adapters
|
package com.gallery.raw.adapters
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.models.FilterItem
|
import com.gallery.raw.models.FilterItem
|
||||||
import kotlinx.android.synthetic.main.editor_filter_item.view.*
|
import kotlinx.android.synthetic.main.editor_filter_item.view.*
|
||||||
|
|
||||||
class FiltersAdapter(val context: Context, val filterItems: ArrayList<FilterItem>, val itemClick: (Int) -> Unit) :
|
class FiltersAdapter(val context: Context, val filterItems: ArrayList<FilterItem>, val itemClick: (Int) -> Unit) :
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.adapters
|
package com.gallery.raw.adapters
|
||||||
|
|
||||||
import android.view.*
|
import android.view.*
|
||||||
import android.widget.PopupMenu
|
import android.widget.PopupMenu
|
||||||
@ -8,8 +8,8 @@ import com.simplemobiletools.commons.extensions.getPopupMenuTheme
|
|||||||
import com.simplemobiletools.commons.extensions.getProperTextColor
|
import com.simplemobiletools.commons.extensions.getProperTextColor
|
||||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
||||||
|
|
||||||
class ManageFoldersAdapter(
|
class ManageFoldersAdapter(
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.adapters
|
package com.gallery.raw.adapters
|
||||||
|
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -9,8 +9,8 @@ import com.simplemobiletools.commons.extensions.getProperTextColor
|
|||||||
import com.simplemobiletools.commons.extensions.isPathOnSD
|
import com.simplemobiletools.commons.extensions.isPathOnSD
|
||||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.removeNoMedia
|
import com.gallery.raw.extensions.removeNoMedia
|
||||||
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
||||||
|
|
||||||
class ManageHiddenFoldersAdapter(
|
class ManageHiddenFoldersAdapter(
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.adapters
|
package com.gallery.raw.adapters
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.pm.ShortcutInfo
|
import android.content.pm.ShortcutInfo
|
||||||
@ -10,6 +10,11 @@ import android.util.Log
|
|||||||
import android.view.*
|
import android.view.*
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
|
import com.gallery.raw.extensions.config
|
||||||
|
import com.gallery.raw.extensions.loadImage
|
||||||
|
import com.gallery.raw.extensions.rescanFolderMedia
|
||||||
|
import com.gallery.raw.extensions.updateDBMediaPath
|
||||||
|
import com.gallery.raw.extensions.updateFavorite
|
||||||
import com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
|
import com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
|
import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
|
||||||
@ -20,16 +25,36 @@ import com.simplemobiletools.commons.extensions.*
|
|||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.MediaActivity
|
import com.gallery.raw.activities.ViewPagerActivity
|
||||||
import com.simplemobiletools.gallery.pro.activities.ViewPagerActivity
|
import com.gallery.raw.dialogs.DeleteWithRememberDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.DeleteWithRememberDialog
|
import com.gallery.raw.extensions.fixDateTaken
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.extensions.getShortcutImage
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.extensions.handleMediaManagementPrompt
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.MediaOperationsListener
|
import com.gallery.raw.extensions.openEditor
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.extensions.openPath
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.extensions.restoreRecycleBinPaths
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailSection
|
import com.gallery.raw.extensions.saveRotatedImageToFile
|
||||||
|
import com.gallery.raw.extensions.setAs
|
||||||
|
import com.gallery.raw.extensions.shareMediaPaths
|
||||||
|
import com.gallery.raw.extensions.shareMediumPath
|
||||||
|
import com.gallery.raw.extensions.toggleFileVisibility
|
||||||
|
import com.gallery.raw.extensions.tryCopyMoveFilesTo
|
||||||
|
import com.gallery.raw.extensions.updateFavoritePaths
|
||||||
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_BIG
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_NONE
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_SMALL
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.helpers.SHOW_FAVORITES
|
||||||
|
import com.gallery.raw.helpers.SHOW_RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.interfaces.MediaOperationsListener
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
|
import com.gallery.raw.models.ThumbnailSection
|
||||||
import kotlinx.android.synthetic.main.photo_item_grid.view.*
|
import kotlinx.android.synthetic.main.photo_item_grid.view.*
|
||||||
import kotlinx.android.synthetic.main.thumbnail_section.view.*
|
import kotlinx.android.synthetic.main.thumbnail_section.view.*
|
||||||
import kotlinx.android.synthetic.main.video_item_grid.view.*
|
import kotlinx.android.synthetic.main.video_item_grid.view.*
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.adapters
|
package com.gallery.raw.adapters
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
@ -7,13 +7,13 @@ import androidx.fragment.app.Fragment
|
|||||||
import androidx.fragment.app.FragmentManager
|
import androidx.fragment.app.FragmentManager
|
||||||
import androidx.fragment.app.FragmentStatePagerAdapter
|
import androidx.fragment.app.FragmentStatePagerAdapter
|
||||||
import androidx.viewpager.widget.PagerAdapter
|
import androidx.viewpager.widget.PagerAdapter
|
||||||
import com.simplemobiletools.gallery.pro.activities.ViewPagerActivity
|
import com.gallery.raw.activities.ViewPagerActivity
|
||||||
import com.simplemobiletools.gallery.pro.fragments.PhotoFragment
|
import com.gallery.raw.fragments.PhotoFragment
|
||||||
import com.simplemobiletools.gallery.pro.fragments.VideoFragment
|
import com.gallery.raw.fragments.VideoFragment
|
||||||
import com.simplemobiletools.gallery.pro.fragments.ViewPagerFragment
|
import com.gallery.raw.fragments.ViewPagerFragment
|
||||||
import com.simplemobiletools.gallery.pro.helpers.MEDIUM
|
import com.gallery.raw.helpers.MEDIUM
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SHOULD_INIT_FRAGMENT
|
import com.gallery.raw.helpers.SHOULD_INIT_FRAGMENT
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.models.Medium
|
||||||
|
|
||||||
class MyPagerAdapter(val activity: ViewPagerActivity, fm: FragmentManager, val media: MutableList<Medium>) : FragmentStatePagerAdapter(fm) {
|
class MyPagerAdapter(val activity: ViewPagerActivity, fm: FragmentManager, val media: MutableList<Medium>) : FragmentStatePagerAdapter(fm) {
|
||||||
private val fragments = HashMap<Int, ViewPagerFragment>()
|
private val fragments = HashMap<Int, ViewPagerFragment>()
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.adapters
|
package com.gallery.raw.adapters
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -11,7 +11,7 @@ import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
|
|||||||
import com.bumptech.glide.request.RequestOptions
|
import com.bumptech.glide.request.RequestOptions
|
||||||
import com.bumptech.glide.signature.ObjectKey
|
import com.bumptech.glide.signature.ObjectKey
|
||||||
import com.simplemobiletools.commons.extensions.getFileKey
|
import com.simplemobiletools.commons.extensions.getFileKey
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import kotlinx.android.synthetic.main.portrait_photo_item.view.*
|
import kotlinx.android.synthetic.main.portrait_photo_item.view.*
|
||||||
|
|
||||||
class PortraitPhotosAdapter(val context: Context, val photos: ArrayList<String>, val sideElementWidth: Int, val itemClick: (Int, Int) -> Unit) :
|
class PortraitPhotosAdapter(val context: Context, val photos: ArrayList<String>, val sideElementWidth: Int, val itemClick: (Int, Int) -> Unit) :
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.asynctasks
|
package com.gallery.raw.asynctasks
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.AsyncTask
|
import android.os.AsyncTask
|
||||||
@ -6,11 +6,17 @@ import com.simplemobiletools.commons.helpers.FAVORITES
|
|||||||
import com.simplemobiletools.commons.helpers.SORT_BY_DATE_MODIFIED
|
import com.simplemobiletools.commons.helpers.SORT_BY_DATE_MODIFIED
|
||||||
import com.simplemobiletools.commons.helpers.SORT_BY_DATE_TAKEN
|
import com.simplemobiletools.commons.helpers.SORT_BY_DATE_TAKEN
|
||||||
import com.simplemobiletools.commons.helpers.SORT_BY_SIZE
|
import com.simplemobiletools.commons.helpers.SORT_BY_SIZE
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.getFavoritePaths
|
import com.gallery.raw.extensions.getFavoritePaths
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_DAILY
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_MONTHLY
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.MediaFetcher
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
|
|
||||||
class GetMediaAsynctask(
|
class GetMediaAsynctask(
|
||||||
val context: Context, val mPath: String, val isPickImage: Boolean = false, val isPickVideo: Boolean = false,
|
val context: Context, val mPath: String, val isPickImage: Boolean = false, val isPickVideo: Boolean = false,
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.databases
|
package com.gallery.raw.databases
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.room.Database
|
import androidx.room.Database
|
||||||
@ -6,8 +6,16 @@ import androidx.room.Room
|
|||||||
import androidx.room.RoomDatabase
|
import androidx.room.RoomDatabase
|
||||||
import androidx.room.migration.Migration
|
import androidx.room.migration.Migration
|
||||||
import androidx.sqlite.db.SupportSQLiteDatabase
|
import androidx.sqlite.db.SupportSQLiteDatabase
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.*
|
import com.gallery.raw.interfaces.DateTakensDao
|
||||||
import com.simplemobiletools.gallery.pro.models.*
|
import com.gallery.raw.interfaces.DirectoryDao
|
||||||
|
import com.gallery.raw.interfaces.FavoritesDao
|
||||||
|
import com.gallery.raw.interfaces.MediumDao
|
||||||
|
import com.gallery.raw.interfaces.WidgetsDao
|
||||||
|
import com.gallery.raw.models.DateTaken
|
||||||
|
import com.gallery.raw.models.Directory
|
||||||
|
import com.gallery.raw.models.Favorite
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.models.Widget
|
||||||
|
|
||||||
@Database(entities = [Directory::class, Medium::class, Widget::class, DateTaken::class, Favorite::class], version = 10)
|
@Database(entities = [Directory::class, Medium::class, Widget::class, DateTaken::class, Favorite::class], version = 10)
|
||||||
abstract class GalleryDatabase : RoomDatabase() {
|
abstract class GalleryDatabase : RoomDatabase() {
|
@ -1,11 +1,11 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
|
|
||||||
class AllFilesPermissionDialog(
|
class AllFilesPermissionDialog(
|
||||||
val activity: BaseSimpleActivity, message: String = "", val callback: (result: Boolean) -> Unit, val neutralPressed: () -> Unit
|
val activity: BaseSimpleActivity, message: String = "", val callback: (result: Boolean) -> Unit, val neutralPressed: () -> Unit
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -7,8 +7,8 @@ import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
|||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.models.RadioItem
|
import com.simplemobiletools.commons.models.RadioItem
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import kotlinx.android.synthetic.main.dialog_change_file_thumbnail_style.view.*
|
import kotlinx.android.synthetic.main.dialog_change_file_thumbnail_style.view.*
|
||||||
|
|
||||||
class ChangeFileThumbnailStyleDialog(val activity: BaseSimpleActivity) : DialogInterface.OnClickListener {
|
class ChangeFileThumbnailStyleDialog(val activity: BaseSimpleActivity) : DialogInterface.OnClickListener {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
@ -8,9 +8,13 @@ import com.bumptech.glide.load.resource.bitmap.RoundedCorners
|
|||||||
import com.bumptech.glide.request.RequestOptions
|
import com.bumptech.glide.request.RequestOptions
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.FOLDER_MEDIA_CNT_BRACKETS
|
||||||
|
import com.gallery.raw.helpers.FOLDER_MEDIA_CNT_LINE
|
||||||
|
import com.gallery.raw.helpers.FOLDER_MEDIA_CNT_NONE
|
||||||
|
import com.gallery.raw.helpers.FOLDER_STYLE_ROUNDED_CORNERS
|
||||||
|
import com.gallery.raw.helpers.FOLDER_STYLE_SQUARE
|
||||||
import kotlinx.android.synthetic.main.dialog_change_folder_thumbnail_style.view.*
|
import kotlinx.android.synthetic.main.dialog_change_folder_thumbnail_style.view.*
|
||||||
import kotlinx.android.synthetic.main.directory_item_grid_square.view.*
|
import kotlinx.android.synthetic.main.directory_item_grid_square.view.*
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -6,9 +6,19 @@ import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
|||||||
import com.simplemobiletools.commons.extensions.beVisibleIf
|
import com.simplemobiletools.commons.extensions.beVisibleIf
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_EXTENSION
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_FILE_TYPE
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_FOLDER
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_NONE
|
||||||
|
import com.gallery.raw.helpers.GROUP_DESCENDING
|
||||||
|
import com.gallery.raw.helpers.GROUP_SHOW_FILE_COUNT
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
import kotlinx.android.synthetic.main.dialog_change_grouping.view.*
|
import kotlinx.android.synthetic.main.dialog_change_grouping.view.*
|
||||||
|
|
||||||
class ChangeGroupingDialog(val activity: BaseSimpleActivity, val path: String = "", val callback: () -> Unit) :
|
class ChangeGroupingDialog(val activity: BaseSimpleActivity, val path: String = "", val callback: () -> Unit) :
|
@ -1,14 +1,14 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.Config.Companion.SORT_BY_FAVORITE
|
import com.gallery.raw.helpers.Config.Companion.SORT_BY_FAVORITE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SHOW_ALL
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
import kotlinx.android.synthetic.main.dialog_change_sorting.view.*
|
import kotlinx.android.synthetic.main.dialog_change_sorting.view.*
|
||||||
|
|
||||||
class ChangeSortingDialog(
|
class ChangeSortingDialog(
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
@ -7,9 +7,9 @@ import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
|||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
||||||
import com.simplemobiletools.commons.helpers.VIEW_TYPE_LIST
|
import com.simplemobiletools.commons.helpers.VIEW_TYPE_LIST
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SHOW_ALL
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
import kotlinx.android.synthetic.main.dialog_change_view_type.view.*
|
import kotlinx.android.synthetic.main.dialog_change_view_type.view.*
|
||||||
|
|
||||||
class ChangeViewTypeDialog(val activity: BaseSimpleActivity, val fromFoldersView: Boolean, val path: String = "", val callback: () -> Unit) {
|
class ChangeViewTypeDialog(val activity: BaseSimpleActivity, val fromFoldersView: Boolean, val path: String = "", val callback: () -> Unit) {
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import kotlinx.android.synthetic.main.dialog_confirm_delete_folder.view.*
|
import kotlinx.android.synthetic.main.dialog_confirm_delete_folder.view.*
|
||||||
|
|
||||||
class ConfirmDeleteFolderDialog(activity: Activity, message: String, warningMessage: String, val callback: () -> Unit) {
|
class ConfirmDeleteFolderDialog(activity: Activity, message: String, warningMessage: String, val callback: () -> Unit) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.widget.EditText
|
import android.widget.EditText
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
@ -7,7 +7,7 @@ import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
|||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.extensions.showKeyboard
|
import com.simplemobiletools.commons.extensions.showKeyboard
|
||||||
import com.simplemobiletools.commons.extensions.value
|
import com.simplemobiletools.commons.extensions.value
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import kotlinx.android.synthetic.main.dialog_custom_aspect_ratio.view.*
|
import kotlinx.android.synthetic.main.dialog_custom_aspect_ratio.view.*
|
||||||
|
|
||||||
class CustomAspectRatioDialog(
|
class CustomAspectRatioDialog(
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import kotlinx.android.synthetic.main.dialog_delete_with_remember.view.*
|
import kotlinx.android.synthetic.main.dialog_delete_with_remember.view.*
|
||||||
|
|
||||||
class DeleteWithRememberDialog(val activity: Activity, val message: String, val callback: (remember: Boolean) -> Unit) {
|
class DeleteWithRememberDialog(val activity: Activity, val message: String, val callback: (remember: Boolean) -> Unit) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.RadioButton
|
import android.widget.RadioButton
|
||||||
@ -8,8 +8,8 @@ import com.simplemobiletools.commons.extensions.beVisibleIf
|
|||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.getBasePath
|
import com.simplemobiletools.commons.extensions.getBasePath
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import kotlinx.android.synthetic.main.dialog_exclude_folder.view.*
|
import kotlinx.android.synthetic.main.dialog_exclude_folder.view.*
|
||||||
|
|
||||||
class ExcludeFolderDialog(val activity: BaseSimpleActivity, val selectedPaths: List<String>, val callback: () -> Unit) {
|
class ExcludeFolderDialog(val activity: BaseSimpleActivity, val selectedPaths: List<String>, val callback: () -> Unit) {
|
@ -1,12 +1,12 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
||||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import kotlinx.android.synthetic.main.dialog_export_favorites.view.*
|
import kotlinx.android.synthetic.main.dialog_export_favorites.view.*
|
||||||
|
|
||||||
class ExportFavoritesDialog(
|
class ExportFavoritesDialog(
|
@ -1,11 +1,17 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_PORTRAITS
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
|
import com.gallery.raw.helpers.getDefaultFileFilter
|
||||||
import kotlinx.android.synthetic.main.dialog_filter_media.view.*
|
import kotlinx.android.synthetic.main.dialog_filter_media.view.*
|
||||||
|
|
||||||
class FilterMediaDialog(val activity: BaseSimpleActivity, val callback: (result: Int) -> Unit) {
|
class FilterMediaDialog(val activity: BaseSimpleActivity, val callback: (result: Int) -> Unit) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
@ -6,8 +6,8 @@ import com.simplemobiletools.commons.extensions.applyColorFilter
|
|||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.getProperTextColor
|
import com.simplemobiletools.commons.extensions.getProperTextColor
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.launchGrantAllFilesIntent
|
import com.gallery.raw.extensions.launchGrantAllFilesIntent
|
||||||
import kotlinx.android.synthetic.main.dialog_grant_all_files.view.*
|
import kotlinx.android.synthetic.main.dialog_grant_all_files.view.*
|
||||||
|
|
||||||
class GrantAllFilesDialog(val activity: BaseSimpleActivity) {
|
class GrantAllFilesDialog(val activity: BaseSimpleActivity) {
|
@ -1,11 +1,25 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.BOTTOM_ACTION_CHANGE_ORIENTATION
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_COPY
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_DELETE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_EDIT
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_MOVE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_PROPERTIES
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_RENAME
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_RESIZE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_ROTATE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SET_AS
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SHARE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SHOW_ON_MAP
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_SLIDESHOW
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_TOGGLE_FAVORITE
|
||||||
|
import com.gallery.raw.helpers.BOTTOM_ACTION_TOGGLE_VISIBILITY
|
||||||
import kotlinx.android.synthetic.main.dialog_manage_bottom_actions.view.*
|
import kotlinx.android.synthetic.main.dialog_manage_bottom_actions.view.*
|
||||||
|
|
||||||
class ManageBottomActionsDialog(val activity: BaseSimpleActivity, val callback: (result: Int) -> Unit) {
|
class ManageBottomActionsDialog(val activity: BaseSimpleActivity, val callback: (result: Int) -> Unit) {
|
@ -1,11 +1,19 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.EXT_CAMERA_MODEL
|
||||||
|
import com.gallery.raw.helpers.EXT_DATE_TAKEN
|
||||||
|
import com.gallery.raw.helpers.EXT_EXIF_PROPERTIES
|
||||||
|
import com.gallery.raw.helpers.EXT_GPS
|
||||||
|
import com.gallery.raw.helpers.EXT_LAST_MODIFIED
|
||||||
|
import com.gallery.raw.helpers.EXT_NAME
|
||||||
|
import com.gallery.raw.helpers.EXT_PATH
|
||||||
|
import com.gallery.raw.helpers.EXT_RESOLUTION
|
||||||
|
import com.gallery.raw.helpers.EXT_SIZE
|
||||||
import kotlinx.android.synthetic.main.dialog_manage_extended_details.view.*
|
import kotlinx.android.synthetic.main.dialog_manage_extended_details.view.*
|
||||||
|
|
||||||
class ManageExtendedDetailsDialog(val activity: BaseSimpleActivity, val callback: (result: Int) -> Unit) {
|
class ManageExtendedDetailsDialog(val activity: BaseSimpleActivity, val callback: (result: Int) -> Unit) {
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import kotlinx.android.synthetic.main.dialog_other_aspect_ratio.view.*
|
import kotlinx.android.synthetic.main.dialog_other_aspect_ratio.view.*
|
||||||
|
|
||||||
class OtherAspectRatioDialog(
|
class OtherAspectRatioDialog(
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.view.KeyEvent
|
import android.view.KeyEvent
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
@ -9,10 +9,15 @@ import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
|||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
||||||
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.DirectoryAdapter
|
import com.gallery.raw.adapters.DirectoryAdapter
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.extensions.addTempFolderIfNeeded
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
import com.gallery.raw.extensions.config
|
||||||
|
import com.gallery.raw.extensions.getCachedDirectories
|
||||||
|
import com.gallery.raw.extensions.getDirsToShow
|
||||||
|
import com.gallery.raw.extensions.getDistinctPath
|
||||||
|
import com.gallery.raw.extensions.getSortedDirectories
|
||||||
|
import com.gallery.raw.models.Directory
|
||||||
import kotlinx.android.synthetic.main.dialog_directory_picker.view.*
|
import kotlinx.android.synthetic.main.dialog_directory_picker.view.*
|
||||||
|
|
||||||
class PickDirectoryDialog(
|
class PickDirectoryDialog(
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
@ -8,16 +8,16 @@ import com.simplemobiletools.commons.extensions.getProperPrimaryColor
|
|||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
||||||
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
import com.simplemobiletools.commons.views.MyGridLayoutManager
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.adapters.MediaAdapter
|
import com.gallery.raw.adapters.MediaAdapter
|
||||||
import com.simplemobiletools.gallery.pro.asynctasks.GetMediaAsynctask
|
import com.gallery.raw.asynctasks.GetMediaAsynctask
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.getCachedMedia
|
import com.gallery.raw.extensions.getCachedMedia
|
||||||
import com.simplemobiletools.gallery.pro.helpers.GridSpacingItemDecoration
|
import com.gallery.raw.helpers.GridSpacingItemDecoration
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SHOW_ALL
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.models.Medium
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailSection
|
import com.gallery.raw.models.ThumbnailSection
|
||||||
import kotlinx.android.synthetic.main.dialog_medium_picker.view.*
|
import kotlinx.android.synthetic.main.dialog_medium_picker.view.*
|
||||||
|
|
||||||
class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val callback: (path: String) -> Unit) {
|
class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val callback: (path: String) -> Unit) {
|
@ -1,11 +1,11 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.graphics.Point
|
import android.graphics.Point
|
||||||
import android.widget.EditText
|
import android.widget.EditText
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import kotlinx.android.synthetic.main.dialog_resize_image.view.*
|
import kotlinx.android.synthetic.main.dialog_resize_image.view.*
|
||||||
|
|
||||||
class ResizeDialog(val activity: BaseSimpleActivity, val size: Point, val callback: (newSize: Point) -> Unit) {
|
class ResizeDialog(val activity: BaseSimpleActivity, val size: Point, val callback: (newSize: Point) -> Unit) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.graphics.Point
|
import android.graphics.Point
|
||||||
import android.widget.EditText
|
import android.widget.EditText
|
||||||
@ -7,8 +7,8 @@ import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
|||||||
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
||||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import kotlinx.android.synthetic.main.dialog_resize_image_with_path.view.*
|
import kotlinx.android.synthetic.main.dialog_resize_image_with_path.view.*
|
||||||
|
|
||||||
class ResizeWithPathDialog(val activity: BaseSimpleActivity, val size: Point, val path: String, val callback: (newSize: Point, newPath: String) -> Unit) {
|
class ResizeWithPathDialog(val activity: BaseSimpleActivity, val size: Point, val path: String, val callback: (newSize: Point, newPath: String) -> Unit) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
@ -6,7 +6,7 @@ import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
|||||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.isRPlus
|
import com.simplemobiletools.commons.helpers.isRPlus
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import kotlinx.android.synthetic.main.dialog_save_as.view.*
|
import kotlinx.android.synthetic.main.dialog_save_as.view.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.dialogs
|
package com.gallery.raw.dialogs
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
@ -9,12 +9,12 @@ import com.simplemobiletools.commons.extensions.hideKeyboard
|
|||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.extensions.value
|
import com.simplemobiletools.commons.extensions.value
|
||||||
import com.simplemobiletools.commons.models.RadioItem
|
import com.simplemobiletools.commons.models.RadioItem
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SLIDESHOW_ANIMATION_FADE
|
import com.gallery.raw.helpers.SLIDESHOW_ANIMATION_FADE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SLIDESHOW_ANIMATION_NONE
|
import com.gallery.raw.helpers.SLIDESHOW_ANIMATION_NONE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SLIDESHOW_ANIMATION_SLIDE
|
import com.gallery.raw.helpers.SLIDESHOW_ANIMATION_SLIDE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.SLIDESHOW_DEFAULT_INTERVAL
|
import com.gallery.raw.helpers.SLIDESHOW_DEFAULT_INTERVAL
|
||||||
import kotlinx.android.synthetic.main.dialog_slideshow.view.*
|
import kotlinx.android.synthetic.main.dialog_slideshow.view.*
|
||||||
|
|
||||||
class SlideshowDialog(val activity: BaseSimpleActivity, val callback: () -> Unit) {
|
class SlideshowDialog(val activity: BaseSimpleActivity, val callback: () -> Unit) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import android.annotation.TargetApi
|
import android.annotation.TargetApi
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
@ -34,16 +34,15 @@ import com.simplemobiletools.commons.extensions.*
|
|||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.models.FAQItem
|
import com.simplemobiletools.commons.models.FAQItem
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.gallery.pro.BuildConfig
|
import com.gallery.raw.BuildConfig
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.MediaActivity
|
import com.gallery.raw.activities.MediaActivity
|
||||||
import com.simplemobiletools.gallery.pro.activities.SettingsActivity
|
import com.gallery.raw.activities.SimpleActivity
|
||||||
import com.simplemobiletools.gallery.pro.activities.SimpleActivity
|
import com.gallery.raw.dialogs.AllFilesPermissionDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.AllFilesPermissionDialog
|
import com.gallery.raw.dialogs.PickDirectoryDialog
|
||||||
import com.simplemobiletools.gallery.pro.dialogs.PickDirectoryDialog
|
import com.gallery.raw.helpers.DIRECTORY
|
||||||
import com.simplemobiletools.gallery.pro.helpers.DIRECTORY
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN
|
import com.gallery.raw.models.DateTaken
|
||||||
import com.simplemobiletools.gallery.pro.models.DateTaken
|
|
||||||
import com.squareup.picasso.Picasso
|
import com.squareup.picasso.Picasso
|
||||||
import java.io.*
|
import java.io.*
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
@ -116,7 +115,7 @@ fun Activity.launchCamera() {
|
|||||||
|
|
||||||
fun SimpleActivity.launchSettings() {
|
fun SimpleActivity.launchSettings() {
|
||||||
hideKeyboard()
|
hideKeyboard()
|
||||||
startActivity(Intent(applicationContext, SettingsActivity::class.java))
|
startActivity(Intent(applicationContext, com.gallery.raw.activities.SettingsActivity::class.java))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun SimpleActivity.launchAbout() {
|
fun SimpleActivity.launchAbout() {
|
@ -1,7 +1,12 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_PORTRAITS
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
|
||||||
fun ArrayList<Medium>.getDirMediaTypes(): Int {
|
fun ArrayList<Medium>.getDirMediaTypes(): Int {
|
||||||
var types = 0
|
var types = 0
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import android.appwidget.AppWidgetManager
|
import android.appwidget.AppWidgetManager
|
||||||
import android.content.ComponentName
|
import android.content.ComponentName
|
||||||
@ -22,7 +22,6 @@ import com.bumptech.glide.load.Transformation
|
|||||||
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
||||||
import com.bumptech.glide.load.engine.GlideException
|
import com.bumptech.glide.load.engine.GlideException
|
||||||
import com.bumptech.glide.load.resource.bitmap.CenterCrop
|
import com.bumptech.glide.load.resource.bitmap.CenterCrop
|
||||||
import com.bumptech.glide.load.resource.bitmap.FitCenter
|
|
||||||
import com.bumptech.glide.load.resource.bitmap.Rotate
|
import com.bumptech.glide.load.resource.bitmap.Rotate
|
||||||
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
|
||||||
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
|
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
|
||||||
@ -30,17 +29,48 @@ import com.bumptech.glide.request.RequestListener
|
|||||||
import com.bumptech.glide.request.RequestOptions
|
import com.bumptech.glide.request.RequestOptions
|
||||||
import com.bumptech.glide.request.target.Target
|
import com.bumptech.glide.request.target.Target
|
||||||
import com.bumptech.glide.signature.ObjectKey
|
import com.bumptech.glide.signature.ObjectKey
|
||||||
|
import com.gallery.raw.helpers.Config
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.views.MySquareImageView
|
import com.simplemobiletools.commons.views.MySquareImageView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.asynctasks.GetMediaAsynctask
|
import com.gallery.raw.asynctasks.GetMediaAsynctask
|
||||||
import com.simplemobiletools.gallery.pro.databases.GalleryDatabase
|
import com.gallery.raw.databases.GalleryDatabase
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.*
|
||||||
import com.simplemobiletools.gallery.pro.helpers.Config.Companion.SORT_BY_FAVORITE
|
import com.gallery.raw.helpers.Config.Companion.SORT_BY_FAVORITE
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.*
|
import com.gallery.raw.helpers.FavoritesProxy
|
||||||
import com.simplemobiletools.gallery.pro.models.*
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_DAILY
|
||||||
import com.simplemobiletools.gallery.pro.svg.SvgSoftwareLayerSetter
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.IsoTypeReader
|
||||||
|
import com.gallery.raw.helpers.LOCATION_INTERNAL
|
||||||
|
import com.gallery.raw.helpers.LOCATION_OTG
|
||||||
|
import com.gallery.raw.helpers.LOCATION_SD
|
||||||
|
import com.gallery.raw.helpers.MediaFetcher
|
||||||
|
import com.gallery.raw.helpers.MyWidgetProvider
|
||||||
|
import com.gallery.raw.helpers.PicassoRoundedCornersTransformation
|
||||||
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_NONE
|
||||||
|
import com.gallery.raw.helpers.ROUNDED_CORNERS_SMALL
|
||||||
|
import com.gallery.raw.helpers.SHOW_ALL
|
||||||
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_PORTRAITS
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
|
import com.gallery.raw.interfaces.DateTakensDao
|
||||||
|
import com.gallery.raw.interfaces.DirectoryDao
|
||||||
|
import com.gallery.raw.interfaces.MediumDao
|
||||||
|
import com.gallery.raw.interfaces.WidgetsDao
|
||||||
|
import com.gallery.raw.models.AlbumCover
|
||||||
|
import com.gallery.raw.models.Directory
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
|
import com.gallery.raw.interfaces.*
|
||||||
|
import com.gallery.raw.models.*
|
||||||
|
import com.gallery.raw.svg.SvgSoftwareLayerSetter
|
||||||
import com.squareup.picasso.Picasso
|
import com.squareup.picasso.Picasso
|
||||||
import pl.droidsonroids.gif.GifDrawable
|
import pl.droidsonroids.gif.GifDrawable
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import androidx.exifinterface.media.ExifInterface
|
import androidx.exifinterface.media.ExifInterface
|
||||||
import java.lang.reflect.Field
|
import java.lang.reflect.Field
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import com.simplemobiletools.commons.helpers.SORT_DESCENDING
|
import com.simplemobiletools.commons.helpers.SORT_DESCENDING
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.res.Resources
|
import android.content.res.Resources
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import android.os.Environment
|
import android.os.Environment
|
||||||
import com.simplemobiletools.commons.extensions.isExternalStorageManager
|
import com.simplemobiletools.commons.extensions.isExternalStorageManager
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.extensions
|
package com.gallery.raw.extensions
|
||||||
|
|
||||||
import android.os.SystemClock
|
import android.os.SystemClock
|
||||||
import android.view.MotionEvent
|
import android.view.MotionEvent
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.fragments
|
package com.gallery.raw.fragments
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
@ -14,13 +14,11 @@ import android.os.Build
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
import android.util.DisplayMetrics
|
import android.util.DisplayMetrics
|
||||||
import android.util.Log
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.MotionEvent
|
import android.view.MotionEvent
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
import androidx.exifinterface.media.ExifInterface
|
|
||||||
import androidx.exifinterface.media.ExifInterface.*
|
import androidx.exifinterface.media.ExifInterface.*
|
||||||
import com.alexvasilkov.gestures.GestureController
|
import com.alexvasilkov.gestures.GestureController
|
||||||
import com.alexvasilkov.gestures.State
|
import com.alexvasilkov.gestures.State
|
||||||
@ -43,18 +41,26 @@ import com.github.penfeizhou.animation.webp.WebPDrawable
|
|||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.helpers.isRPlus
|
import com.simplemobiletools.commons.helpers.isRPlus
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.PanoramaPhotoActivity
|
import com.gallery.raw.activities.PanoramaPhotoActivity
|
||||||
import com.simplemobiletools.gallery.pro.activities.PhotoActivity
|
import com.gallery.raw.activities.PhotoActivity
|
||||||
import com.simplemobiletools.gallery.pro.activities.PhotoVideoActivity
|
import com.gallery.raw.activities.PhotoVideoActivity
|
||||||
import com.simplemobiletools.gallery.pro.activities.ViewPagerActivity
|
import com.gallery.raw.activities.ViewPagerActivity
|
||||||
import com.simplemobiletools.gallery.pro.adapters.PortraitPhotosAdapter
|
import com.gallery.raw.adapters.PortraitPhotosAdapter
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.getImageOrientationInDegrees
|
import com.gallery.raw.extensions.getImageOrientationInDegrees
|
||||||
import com.simplemobiletools.gallery.pro.extensions.sendFakeClick
|
import com.gallery.raw.extensions.sendFakeClick
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.HIGH_TILE_DPI
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.helpers.LOW_TILE_DPI
|
||||||
import com.simplemobiletools.gallery.pro.svg.SvgSoftwareLayerSetter
|
import com.gallery.raw.helpers.MEDIUM
|
||||||
|
import com.gallery.raw.helpers.MyGlideImageDecoder
|
||||||
|
import com.gallery.raw.helpers.NORMAL_TILE_DPI
|
||||||
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.PicassoRegionDecoder
|
||||||
|
import com.gallery.raw.helpers.SHOULD_INIT_FRAGMENT
|
||||||
|
import com.gallery.raw.helpers.WEIRD_TILE_DPI
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.svg.SvgSoftwareLayerSetter
|
||||||
import com.squareup.picasso.Callback
|
import com.squareup.picasso.Callback
|
||||||
import com.squareup.picasso.Picasso
|
import com.squareup.picasso.Picasso
|
||||||
import kotlinx.android.synthetic.main.pager_photo_item.view.*
|
import kotlinx.android.synthetic.main.pager_photo_item.view.*
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.fragments
|
package com.gallery.raw.fragments
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
@ -14,6 +14,7 @@ import android.widget.RelativeLayout
|
|||||||
import android.widget.SeekBar
|
import android.widget.SeekBar
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
|
import com.gallery.raw.helpers.Config
|
||||||
import com.google.android.exoplayer2.*
|
import com.google.android.exoplayer2.*
|
||||||
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
|
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
|
||||||
import com.google.android.exoplayer2.source.ExtractorMediaSource
|
import com.google.android.exoplayer2.source.ExtractorMediaSource
|
||||||
@ -25,15 +26,18 @@ import com.google.android.exoplayer2.upstream.DataSpec
|
|||||||
import com.google.android.exoplayer2.upstream.FileDataSource
|
import com.google.android.exoplayer2.upstream.FileDataSource
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.PanoramaVideoActivity
|
import com.gallery.raw.activities.PanoramaVideoActivity
|
||||||
import com.simplemobiletools.gallery.pro.activities.VideoActivity
|
import com.gallery.raw.activities.VideoActivity
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.hasNavBar
|
import com.gallery.raw.extensions.hasNavBar
|
||||||
import com.simplemobiletools.gallery.pro.extensions.parseFileChannel
|
import com.gallery.raw.extensions.parseFileChannel
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.FAST_FORWARD_VIDEO_MS
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.helpers.MEDIUM
|
||||||
import com.simplemobiletools.gallery.pro.views.MediaSideScroll
|
import com.gallery.raw.helpers.PATH
|
||||||
|
import com.gallery.raw.helpers.SHOULD_INIT_FRAGMENT
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
|
import com.gallery.raw.views.MediaSideScroll
|
||||||
import kotlinx.android.synthetic.main.bottom_video_time_holder.view.*
|
import kotlinx.android.synthetic.main.bottom_video_time_holder.view.*
|
||||||
import kotlinx.android.synthetic.main.pager_video_item.view.*
|
import kotlinx.android.synthetic.main.pager_video_item.view.*
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.fragments
|
package com.gallery.raw.fragments
|
||||||
|
|
||||||
import android.provider.MediaStore
|
import android.provider.MediaStore
|
||||||
import android.provider.MediaStore.Files
|
import android.provider.MediaStore.Files
|
||||||
@ -7,10 +7,19 @@ import android.view.MotionEvent
|
|||||||
import androidx.exifinterface.media.ExifInterface
|
import androidx.exifinterface.media.ExifInterface
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.EXT_CAMERA_MODEL
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.helpers.EXT_DATE_TAKEN
|
||||||
|
import com.gallery.raw.helpers.EXT_EXIF_PROPERTIES
|
||||||
|
import com.gallery.raw.helpers.EXT_GPS
|
||||||
|
import com.gallery.raw.helpers.EXT_LAST_MODIFIED
|
||||||
|
import com.gallery.raw.helpers.EXT_NAME
|
||||||
|
import com.gallery.raw.helpers.EXT_PATH
|
||||||
|
import com.gallery.raw.helpers.EXT_RESOLUTION
|
||||||
|
import com.gallery.raw.helpers.EXT_SIZE
|
||||||
|
import com.gallery.raw.helpers.MAX_CLOSE_DOWN_GESTURE_DURATION
|
||||||
|
import com.gallery.raw.models.Medium
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
abstract class ViewPagerFragment : Fragment() {
|
abstract class ViewPagerFragment : Fragment() {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
@ -6,8 +6,8 @@ import android.os.Environment
|
|||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.google.gson.reflect.TypeToken
|
import com.google.gson.reflect.TypeToken
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.models.AlbumCover
|
import com.gallery.raw.models.AlbumCover
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class Config(context: Context) : BaseConfig(context) {
|
class Config(context: Context) : BaseConfig(context) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import com.simplemobiletools.commons.helpers.MONTH_SECONDS
|
import com.simplemobiletools.commons.helpers.MONTH_SECONDS
|
||||||
import com.simplemobiletools.commons.helpers.PERMISSION_READ_MEDIA_IMAGES
|
import com.simplemobiletools.commons.helpers.PERMISSION_READ_MEDIA_IMAGES
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.viewpager.widget.ViewPager
|
import androidx.viewpager.widget.ViewPager
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.viewpager.widget.ViewPager
|
import androidx.viewpager.widget.ViewPager
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.simplemobiletools.commons.extensions.getFilenameFromPath
|
import com.simplemobiletools.commons.extensions.getFilenameFromPath
|
||||||
import com.simplemobiletools.commons.extensions.getParentPath
|
import com.simplemobiletools.commons.extensions.getParentPath
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.FavoritesDao
|
import com.gallery.raw.interfaces.FavoritesDao
|
||||||
import com.simplemobiletools.gallery.pro.models.Favorite
|
import com.gallery.raw.models.Favorite
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import com.simplemobiletools.gallery.pro.models.FilterItem
|
import com.gallery.raw.models.FilterItem
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class FilterThumbnailsManager {
|
class FilterThumbnailsManager {
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.models.Medium
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
|
|
||||||
class GridSpacingItemDecoration(
|
class GridSpacingItemDecoration(
|
||||||
val spanCount: Int, val spacing: Int, val isScrollingHorizontally: Boolean, val addSideSpacing: Boolean,
|
val spanCount: Int, val spacing: Int, val isScrollingHorizontally: Boolean, val addSideSpacing: Boolean,
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException
|
import java.io.UnsupportedEncodingException
|
||||||
import java.nio.ByteBuffer
|
import java.nio.ByteBuffer
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.content.ContentResolver
|
import android.content.ContentResolver
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -11,14 +11,19 @@ import android.provider.MediaStore
|
|||||||
import android.provider.MediaStore.Files
|
import android.provider.MediaStore.Files
|
||||||
import android.provider.MediaStore.Images
|
import android.provider.MediaStore.Images
|
||||||
import android.text.format.DateFormat
|
import android.text.format.DateFormat
|
||||||
|
import com.gallery.raw.extensions.config
|
||||||
|
import com.gallery.raw.extensions.dateTakensDB
|
||||||
|
import com.gallery.raw.extensions.getDistinctPath
|
||||||
|
import com.gallery.raw.extensions.getNoMediaFoldersSync
|
||||||
|
import com.gallery.raw.extensions.getUpdatedDeletedMedia
|
||||||
|
import com.gallery.raw.extensions.shouldFolderBeVisible
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.extensions.*
|
import com.gallery.raw.helpers.Config.Companion.SORT_BY_FAVORITE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.Config.Companion.SORT_BY_FAVORITE
|
import com.gallery.raw.models.Medium
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.models.ThumbnailSection
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailSection
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.app.PendingIntent
|
import android.app.PendingIntent
|
||||||
import android.appwidget.AppWidgetManager
|
import android.appwidget.AppWidgetManager
|
||||||
@ -15,13 +15,13 @@ import com.simplemobiletools.commons.extensions.getFileSignature
|
|||||||
import com.simplemobiletools.commons.extensions.setText
|
import com.simplemobiletools.commons.extensions.setText
|
||||||
import com.simplemobiletools.commons.extensions.setVisibleIf
|
import com.simplemobiletools.commons.extensions.setVisibleIf
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.gallery.raw.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.MediaActivity
|
import com.gallery.raw.activities.MediaActivity
|
||||||
import com.simplemobiletools.gallery.pro.extensions.config
|
import com.gallery.raw.extensions.config
|
||||||
import com.simplemobiletools.gallery.pro.extensions.directoryDB
|
import com.gallery.raw.extensions.directoryDB
|
||||||
import com.simplemobiletools.gallery.pro.extensions.getFolderNameFromPath
|
import com.gallery.raw.extensions.getFolderNameFromPath
|
||||||
import com.simplemobiletools.gallery.pro.extensions.widgetsDB
|
import com.gallery.raw.extensions.widgetsDB
|
||||||
import com.simplemobiletools.gallery.pro.models.Widget
|
import com.gallery.raw.models.Widget
|
||||||
|
|
||||||
class MyWidgetProvider : AppWidgetProvider() {
|
class MyWidgetProvider : AppWidgetProvider() {
|
||||||
private fun setupAppOpenIntent(context: Context, views: RemoteViews, id: Int, widget: Widget) {
|
private fun setupAppOpenIntent(context: Context, views: RemoteViews, id: Int, widget: Widget) {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.*
|
import android.graphics.*
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.graphics.*
|
import android.graphics.*
|
||||||
import com.squareup.picasso.Transformation
|
import com.squareup.picasso.Transformation
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.gallery.raw.helpers
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import android.graphics.Matrix
|
import android.graphics.Matrix
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.gallery.raw.interfaces
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
import androidx.room.OnConflictStrategy
|
import androidx.room.OnConflictStrategy
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.simplemobiletools.gallery.pro.models.DateTaken
|
import com.gallery.raw.models.DateTaken
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface DateTakensDao {
|
interface DateTakensDao {
|
@ -1,11 +1,11 @@
|
|||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.gallery.raw.interfaces
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
import androidx.room.OnConflictStrategy.REPLACE
|
import androidx.room.OnConflictStrategy.REPLACE
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
import com.gallery.raw.models.Directory
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface DirectoryDao {
|
interface DirectoryDao {
|
@ -1,6 +1,6 @@
|
|||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.gallery.raw.interfaces
|
||||||
|
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
import com.gallery.raw.models.Directory
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
interface DirectoryOperationsListener {
|
interface DirectoryOperationsListener {
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.gallery.raw.interfaces
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
import androidx.room.OnConflictStrategy
|
import androidx.room.OnConflictStrategy
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.simplemobiletools.gallery.pro.models.Favorite
|
import com.gallery.raw.models.Favorite
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface FavoritesDao {
|
interface FavoritesDao {
|
@ -1,7 +1,7 @@
|
|||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.gallery.raw.interfaces
|
||||||
|
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.gallery.pro.models.ThumbnailItem
|
import com.gallery.raw.models.ThumbnailItem
|
||||||
|
|
||||||
interface MediaOperationsListener {
|
interface MediaOperationsListener {
|
||||||
fun refreshItems()
|
fun refreshItems()
|
@ -1,11 +1,11 @@
|
|||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.gallery.raw.interfaces
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Delete
|
import androidx.room.Delete
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
import androidx.room.OnConflictStrategy.REPLACE
|
import androidx.room.OnConflictStrategy.REPLACE
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.simplemobiletools.gallery.pro.models.Medium
|
import com.gallery.raw.models.Medium
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface MediumDao {
|
interface MediumDao {
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.gallery.pro.interfaces
|
package com.gallery.raw.interfaces
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
import androidx.room.OnConflictStrategy
|
import androidx.room.OnConflictStrategy
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.simplemobiletools.gallery.pro.models.Widget
|
import com.gallery.raw.models.Widget
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface WidgetsDao {
|
interface WidgetsDao {
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.jobs
|
package com.gallery.raw.jobs
|
||||||
|
|
||||||
import android.annotation.TargetApi
|
import android.annotation.TargetApi
|
||||||
import android.app.job.JobInfo
|
import android.app.job.JobInfo
|
||||||
@ -18,8 +18,8 @@ import android.provider.MediaStore.Video
|
|||||||
import com.simplemobiletools.commons.extensions.getParentPath
|
import com.simplemobiletools.commons.extensions.getParentPath
|
||||||
import com.simplemobiletools.commons.extensions.getStringValue
|
import com.simplemobiletools.commons.extensions.getStringValue
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.gallery.pro.extensions.addPathToDB
|
import com.gallery.raw.extensions.addPathToDB
|
||||||
import com.simplemobiletools.gallery.pro.extensions.updateDirectoryPath
|
import com.gallery.raw.extensions.updateDirectoryPath
|
||||||
|
|
||||||
// based on https://developer.android.com/reference/android/app/job/JobInfo.Builder.html#addTriggerContentUri(android.app.job.JobInfo.TriggerContentUri)
|
// based on https://developer.android.com/reference/android/app/job/JobInfo.Builder.html#addTriggerContentUri(android.app.job.JobInfo.TriggerContentUri)
|
||||||
@TargetApi(Build.VERSION_CODES.N)
|
@TargetApi(Build.VERSION_CODES.N)
|
@ -1,3 +1,3 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
data class AlbumCover(val path: String, val tmb: String)
|
data class AlbumCover(val path: String, val tmb: String)
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
import androidx.room.ColumnInfo
|
import androidx.room.ColumnInfo
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.room.*
|
import androidx.room.*
|
||||||
@ -6,7 +6,7 @@ import com.bumptech.glide.signature.ObjectKey
|
|||||||
import com.simplemobiletools.commons.extensions.formatDate
|
import com.simplemobiletools.commons.extensions.formatDate
|
||||||
import com.simplemobiletools.commons.extensions.formatSize
|
import com.simplemobiletools.commons.extensions.formatSize
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN
|
import com.gallery.raw.helpers.RECYCLE_BIN
|
||||||
|
|
||||||
@Entity(tableName = "directories", indices = [Index(value = ["path"], unique = true)])
|
@Entity(tableName = "directories", indices = [Index(value = ["path"], unique = true)])
|
||||||
data class Directory(
|
data class Directory(
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
import androidx.room.ColumnInfo
|
import androidx.room.ColumnInfo
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import com.zomato.photofilters.imageprocessors.Filter
|
import com.zomato.photofilters.imageprocessors.Filter
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.room.*
|
import androidx.room.*
|
||||||
@ -6,8 +6,20 @@ import com.bumptech.glide.signature.ObjectKey
|
|||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.gallery.pro.helpers.*
|
import com.gallery.raw.helpers.Config.Companion.SORT_BY_FAVORITE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.Config.Companion.SORT_BY_FAVORITE
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_DATE_TAKEN_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_EXTENSION
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_FILE_TYPE
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_FOLDER
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_DAILY
|
||||||
|
import com.gallery.raw.helpers.GROUP_BY_LAST_MODIFIED_MONTHLY
|
||||||
|
import com.gallery.raw.helpers.TYPE_GIFS
|
||||||
|
import com.gallery.raw.helpers.TYPE_IMAGES
|
||||||
|
import com.gallery.raw.helpers.TYPE_PORTRAITS
|
||||||
|
import com.gallery.raw.helpers.TYPE_RAWS
|
||||||
|
import com.gallery.raw.helpers.TYPE_SVGS
|
||||||
|
import com.gallery.raw.helpers.TYPE_VIDEOS
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
import java.util.*
|
import java.util.*
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
|
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.gallery.raw.models
|
||||||
|
|
||||||
|
open class ThumbnailItem
|
@ -1,3 +1,3 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
data class ThumbnailSection(val title: String) : ThumbnailItem()
|
data class ThumbnailSection(val title: String) : ThumbnailItem()
|
@ -1,4 +1,4 @@
|
|||||||
package com.simplemobiletools.gallery.pro.models
|
package com.gallery.raw.models
|
||||||
|
|
||||||
import androidx.room.ColumnInfo
|
import androidx.room.ColumnInfo
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user