61 lines
2.0 KiB
Kotlin
61 lines
2.0 KiB
Kotlin
|
/*
|
||
|
* Twidere - Twitter client for Android
|
||
|
*
|
||
|
* Copyright (C) 2012-2015 Mariotaku Lee <mariotaku.lee@gmail.com>
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
package org.mariotaku.twidere.activity
|
||
|
|
||
|
import android.os.Bundle
|
||
|
import android.support.v7.widget.Toolbar
|
||
|
import com.soundcloud.android.crop.CropImageActivity
|
||
|
import org.mariotaku.twidere.R
|
||
|
import org.mariotaku.twidere.activity.iface.IThemedActivity
|
||
|
import org.mariotaku.twidere.util.ThemeUtils
|
||
|
|
||
|
/**
|
||
|
* Created by mariotaku on 15/6/16.
|
||
|
*/
|
||
|
class ImageCropperActivity : CropImageActivity(), IThemedActivity {
|
||
|
|
||
|
// Data fields
|
||
|
override val currentThemeBackgroundAlpha by lazy { themeBackgroundAlpha }
|
||
|
override val currentThemeBackgroundOption by lazy { themeBackgroundOption }
|
||
|
|
||
|
private var mDoneCancelBar: Toolbar? = null
|
||
|
|
||
|
override fun onContentChanged() {
|
||
|
super.onContentChanged()
|
||
|
mDoneCancelBar = findViewById(R.id.done_cancel_bar) as Toolbar
|
||
|
}
|
||
|
|
||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||
|
super.onCreate(savedInstanceState)
|
||
|
|
||
|
}
|
||
|
|
||
|
override fun setContentView(layoutResID: Int) {
|
||
|
super.setContentView(R.layout.activity_image_cropper)
|
||
|
}
|
||
|
|
||
|
override val themeBackgroundAlpha: Int
|
||
|
get() = ThemeUtils.getUserThemeBackgroundAlpha(this)
|
||
|
|
||
|
override val themeBackgroundOption: String
|
||
|
get() = ThemeUtils.getThemeBackgroundOption(this)
|
||
|
|
||
|
}
|